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
|
||||
WORKDIR /app
|
||||
|
||||
# install dependencies
|
||||
COPY . /app/
|
||||
# Install dependencies
|
||||
RUN pip install poetry
|
||||
|
||||
COPY poetry.lock /app
|
||||
COPY pyproject.toml /app
|
||||
|
||||
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"]
|
||||
|
Loading…
Reference in New Issue
Block a user