Compare commits
2 Commits
9b03662b17
...
3b529729c9
Author | SHA1 | Date | |
---|---|---|---|
3b529729c9 | |||
4b4cbaa74f |
@ -3,9 +3,15 @@ FROM python:3.7.7-slim-buster
|
|||||||
# set work directory
|
# set work directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# install dependencies
|
# Install dependencies
|
||||||
COPY . /app/
|
|
||||||
RUN pip install poetry
|
RUN pip install poetry
|
||||||
|
|
||||||
|
COPY poetry.lock /app
|
||||||
|
COPY pyproject.toml /app
|
||||||
|
|
||||||
RUN poetry export -f requirements.txt | pip install -r /dev/stdin
|
RUN poetry export -f requirements.txt | pip install -r /dev/stdin
|
||||||
|
|
||||||
|
# Add remaining files
|
||||||
|
COPY . /app/
|
||||||
|
|
||||||
CMD ["gunicorn" , "-b", "0.0.0.0:8000", "app:app"]
|
CMD ["gunicorn" , "-b", "0.0.0.0:8000", "app:app"]
|
||||||
|
Loading…
Reference in New Issue
Block a user