FROM alpine:latest
COPY . /uus
RUN apk add -U python3 py3-gunicorn && \ pip3 install /uus && \
rm -Rf /uus && \ ln -s "$(which flask)" /usr/bin/uus
ENV FLASK_APP=uus
COPY uus_mng /
EXPOSE 8000 ENTRYPOINT gunicorn -b 0.0.0.0 -w 4 uus:app