Skip to content

Commit 5cad13e

Browse files
authored
Move pip install to Makefile (#18)
1 parent 9d9bef2 commit 5cad13e

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ FROM python:latest
77
WORKDIR /aspose-barcode-cloud-python
88
COPY . .
99

10-
RUN pip install -r publish-requirements.txt
1110
RUN echo '[pypi]\nusername = __token__\npassword = ${TWINE_PASSWORD}' > $HOME/.pypirc
1211

13-
ENTRYPOINT ["make"]
14-
CMD ["publish"]
12+
ENTRYPOINT ["make", "publish-docker"]

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,11 @@ check_git:
3737
.PHONY: publish
3838
publish: check_git test dist
3939
python3 -m twine upload dist/*
40+
41+
.PHONY: init-docker
42+
init-docker:
43+
pip install -r publish-requirements.txt
44+
45+
.PHONY: publish-docker
46+
publish-docker: init-docker test dist
47+
python3 -m twine upload dist/*

0 commit comments

Comments
 (0)