FROM alpine:latest LABEL maintainer "J. Elfring " RUN apk add --update --no-cache \ ca-certificates \ python3 \ py3-pip \ && mkdir -p /server/instance \ && chown -R daemon:daemon /server ADD ./app /server/app ADD ./requirements.txt /server/requirements.txt RUN pip install -r /server/requirements.txt USER daemon ENV FLASK_SQLALCHEMY_DATABASE_URI=sqlite:///db.sqlite3 WORKDIR /server VOLUME /server/instance EXPOSE 5000 CMD flask run --host 0.0.0.0 --port 5000