24 lines
528 B
Text
24 lines
528 B
Text
|
FROM alpine:latest
|
||
|
LABEL maintainer "J. Elfring <code@elfring.ms>"
|
||
|
|
||
|
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
|