This repository has been archived on 2024-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
homeapi/Dockerfile

24 lines
528 B
Text
Raw Normal View History

2023-10-29 11:15:51 +01:00
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