cleanup Dockerfile

This commit is contained in:
Andreas Balogh
2021-02-11 15:48:22 +01:00
parent ce48ed7f17
commit fb634a5466
3 changed files with 14 additions and 7 deletions

View File

@@ -1,7 +1,11 @@
FROM python:3.9-slim
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
RUN pip install ZEO==5.2.1
RUN pip install flask
COPY flaskr flaskr
COPY run.sh run.sh
ENV FLASK_APP=flaskr/zeo_db.py
WORKDIR /flaskr
COPY . .
ENV FLASK_APP=flaskr/zeo_db
EXPOSE 5000
CMD /run.sh
CMD python3 -m flask run --host=0.0.0.0

View File

@@ -1,3 +1,4 @@
#!/bin/sh
export FLASK_APP=flaskr/zeo_db
exec python3 -m flask run --host=0.0.0.0