Some changes for convinience

This commit is contained in:
Patrick Jentsch
2020-06-08 10:14:15 +02:00
parent 056fbe273c
commit 023aade995
7 changed files with 16 additions and 20 deletions

3
daemon/.dockerignore Normal file
View File

@ -0,0 +1,3 @@
Dockerfile
.dockerignore
*.bak

View File

@ -4,7 +4,7 @@ FROM python:3.6-slim-stretch
LABEL maintainer="inf_sfb1288@lists.uni-bielefeld.de"
ARG docker_gid=998
ARG docker_gid=999
ARG gid=1000
ARG uid=1000
ENV LANG=C.UTF-8
@ -25,16 +25,10 @@ USER nopaqued
WORKDIR /home/nopaqued
COPY ["logger", "logger"]
COPY ["notify", "notify"]
COPY ["tasks", "tasks"]
COPY ["decorators.py", "nopaqued.py", "requirements.txt", "./"]
COPY --chown=nopaqued:nopaqued [".", "."]
RUN python -m venv venv \
&& venv/bin/pip install --requirement requirements.txt \
&& mkdir logs
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
ENTRYPOINT ["./docker-entrypoint.sh"]

View File

@ -5,4 +5,5 @@ wait-for-it db:5432 --strict --timeout=0
echo "Waiting for web..."
wait-for-it web:5000 --strict --timeout=0
venv/bin/python nopaqued.py
source venv/bin/activate
python nopaqued.py