added flask docker scaffolding
This commit is contained in:
9
src/webui/Dockerfile
Normal file
9
src/webui/Dockerfile
Normal 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
|
||||||
0
src/webui/flaskr/__main__.py
Normal file
0
src/webui/flaskr/__main__.py
Normal file
9
src/webui/run.sh
Normal file
9
src/webui/run.sh
Normal 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
|
||||||
Reference in New Issue
Block a user