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

@@ -43,7 +43,9 @@ unit_test:
tags: tags:
- docker - docker
- ubuntu - ubuntu
artifacts:
paths:
- var/
script: script:
- echo "Run locally, then test" - mkdir var
- export - wget localhost:5000 -o var/index.html

View File

@@ -1,7 +1,11 @@
FROM python:3.9-slim 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 RUN pip install flask
COPY flaskr flaskr WORKDIR /flaskr
COPY run.sh run.sh COPY . .
ENV FLASK_APP=flaskr/zeo_db.py ENV FLASK_APP=flaskr/zeo_db
EXPOSE 5000 EXPOSE 5000
CMD /run.sh CMD python3 -m flask run --host=0.0.0.0

View File

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