FROM tiangolo/uwsgi-nginx-flask:python3.6-alpine3.7 | |
RUN adduser -D infra | |
ENV UWSGI_INI /data/nolabs/app/uwsgi.ini | |
WORKDIR /data/nolabs/app | |
RUN apk --update add bash vim curl git mysql-client mariadb-dev alpine-sdk python3-dev libffi-dev | |
COPY requirements.txt requirements.txt | |
RUN pip install -r requirements.txt | |
ENV STATIC_PATH /data/nolabs/app/app/static | |
ENV LISTEN_PORT 8080 | |
EXPOSE 8080 |