FitTrackee/fittrackee_api/Dockerfile
2019-08-28 13:30:18 +02:00

24 lines
512 B
Docker

FROM python:3.7
MAINTAINER SamR1@users.noreply.github.com
# set working directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# add requirements
COPY ./pyproject.toml /usr/src/app/pyproject.toml
COPY ./poetry.lock /usr/src/app/poetry.lock
# install requirements
RUN pip install --upgrade pip
RUN pip install poetry
RUN poetry config settings.virtualenvs.create false
RUN poetry install --no-interaction
# add app --no-interaction
COPY . /usr/src/app
# run server
CMD flask run --with-threads -h 0.0.0.0