This repository has been archived on 2022-06-28. You can view files and clone it, but cannot push or open issues or pull requests.
Yotter/Dockerfile
2020-09-04 18:12:48 +02:00

16 lines
246 B
Docker

FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN flask db init \
&& flask db migrate\
&& flask db upgrade
CMD [ "flask", "run", "--host", "0.0.0.0" ]
EXPOSE 5000