2020-12-21 18:39:53 +00:00
|
|
|
FROM python:3.8
|
|
|
|
|
2021-01-19 17:57:29 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
2021-01-19 19:05:23 +00:00
|
|
|
# This expects the models submodule to be present
|
|
|
|
COPY models models
|
|
|
|
|
2020-12-21 18:39:53 +00:00
|
|
|
RUN pip install --upgrade pip
|
|
|
|
|
|
|
|
# Avoid rebuilding this step if no changes to requirements.txt
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
2021-01-19 19:05:23 +00:00
|
|
|
# Copy everything else
|
|
|
|
COPY app app
|
|
|
|
COPY *.py LICENSE README.md ./
|
2020-12-21 18:39:53 +00:00
|
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
ENTRYPOINT [ "python", "main.py", "--host", "0.0.0.0" ]
|