From 6a0b3fa162d712f8dbe2a0f917e61410a372afda Mon Sep 17 00:00:00 2001 From: leszeks <leszeks@e-science.pl> Date: Fri, 4 Sep 2020 15:09:14 +0200 Subject: [PATCH] entrypoint fix --- Dockerfile | 6 +++--- docker-compose.yml | 2 +- entrypoint.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5e3bf17..5d4687a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,11 @@ WORKDIR /home/worker COPY ./src ./src COPY ./main.py . COPY ./requirements.txt . -COPY ./entrypoint.sh . +COPY ./entrypoint.sh / COPY ./info.json . RUN python3.6 -m pip install -r requirements.txt -RUN ["chmod", "+x", "./entrypoint.sh"] +RUN ["chmod", "+x", "/entrypoint.sh"] #CMD ["python3.6", "main.py", "service"] -ENTRYPOINT ["./entrypoint.sh"] +ENTRYPOINT ["/entrypoint.sh"] diff --git a/docker-compose.yml b/docker-compose.yml index cc49366..2eaab79 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: ./ working_dir: /home/worker entrypoint: - - ./entrypoint.sh + - /entrypoint.sh environment: - PYTHONUNBUFFERED=0 volumes: diff --git a/entrypoint.sh b/entrypoint.sh index 0c40d8f..964aca7 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/sh -#cd /home/worker +cd /home/worker if [ ! -d "model" ]; then mkdir model fi -- GitLab