ADD file:756183bba9c7f4593c2b216e98e4208b9163c4c962ea0837ef88bd917609d001 in / |
CMD ["/bin/sh"] |
LABEL maintainer=J. Elfring <code@elfring.ms> |
RUN /bin/sh -c apk add --update --no-cache ca-certificates python3 py3-pip && mkdir -p /server/instance && chown -R daemon:daemon /server # buildkit |
ADD ./app /server/app # buildkit |
ADD ./requirements.txt /server/requirements.txt # buildkit |
RUN /bin/sh -c pip install -r /server/requirements.txt # buildkit |
USER daemon |
ENV FLASK_SQLALCHEMY_DATABASE_URI=sqlite:///db.sqlite3 |
WORKDIR /server |
VOLUME [/server/instance] |
EXPOSE map[5000/tcp:{}] |
CMD ["/bin/sh" "-c" "flask run --host 0.0.0.0 --port 5000"] |