update deps and optimize dockerfile

This commit is contained in:
2022-12-08 15:57:33 +01:00
parent 1779f1b903
commit 5c70f435c1
5 changed files with 87 additions and 76 deletions

View File

@@ -1,13 +1,13 @@
FROM python:3.9-alpine
WORKDIR /tmp
RUN pip install pipenv
COPY ./Pipfile* ./
RUN pipenv install --system --deploy
FROM python:3.10-alpine
WORKDIR /action
COPY ./Pipfile* ./
RUN pip install pipenv && \
pipenv install --system --deploy && \
pipenv --clear
COPY ./src .
ENTRYPOINT [ "python" ]
CMD [ "/action/main.py" ]
CMD [ "/action/main.py" ]