Commit 6a0b3fa1 authored by leszeks's avatar leszeks

entrypoint fix

parent 0266000b
Pipeline #1625 passed with stage
in 28 seconds
......@@ -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"]
......@@ -5,7 +5,7 @@ services:
build: ./
working_dir: /home/worker
entrypoint:
- ./entrypoint.sh
- /entrypoint.sh
environment:
- PYTHONUNBUFFERED=0
volumes:
......
#!/bin/sh
#cd /home/worker
cd /home/worker
if [ ! -d "model" ]; then
mkdir model
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment