ui - automated build

This commit is contained in:
bunkerity
2020-12-11 10:52:44 +01:00
parent 4ea01bd93f
commit 559b7835d4
21 changed files with 442 additions and 1 deletions

19
ui/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM alpine
RUN apk add py3-pip apache2-utils bash && \
pip3 install docker flask && \
mkdir /opt/entrypoint && \
mkdir -p /opt/confs/site
COPY confs/site/ /opt/confs/site
COPY entrypoint/* /opt/entrypoint/
COPY ui/ /opt/entrypoint/
RUN chmod +x /opt/entrypoint/*.py /opt/entrypoint/*.sh
VOLUME /etc/nginx
EXPOSE 5000
WORKDIR /opt/entrypoint
ENV FLASK_APP entrypoint.py
ENTRYPOINT ["/usr/bin/python3", "-m", "flask", "run", "--host=0.0.0.0"]