added flask docker scaffolding

This commit is contained in:
Andreas Balogh
2021-02-10 10:31:00 +01:00
parent ae5eca7693
commit c73c9dd2ac
4 changed files with 18 additions and 0 deletions

9
src/webui/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM python:3.9-slim
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
RUN pip install flask==5.6.0
ADD ./run.sh /run.sh
RUN chmod +x /run.sh
EXPOSE 5000
CMD /run.sh

View File

9
src/webui/run.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
# We need to add a empty Data.fs if it does not exist
# as zeo will not start without on.
if [ ! -f /var/zeo/fs/Data.fs ]; then
touch /var/zeo/fs/Data.fs
fi
exec /usr/local/bin/runzeo -a 8100 -C /etc/zeo.conf