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-08 12:46:57 +05:30

20 lines
422 B
Docker

FROM python:alpine
WORKDIR /usr/src/app
RUN apk add gcc musl-dev libffi-dev openssl-dev libxml2-dev libxslt-dev file llvm-dev make g++
COPY requirements.txt ./
RUN pip install wheel cryptography gunicorn pymysql
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN flask db init \
&& flask db migrate\
&& flask db upgrade
CMD [ "gunicorn", "-b", "0.0.0.0:5000", "-w", "4", "yotter:app" ]
EXPOSE 5000