diff --git a/Dockerfile b/Dockerfile index 0a38e5a33..5fefabb3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3 +FROM python:3.7.0-slim ENV PYTHONUNBUFFERED 1 RUN apt-get update && apt-get install -y netcat RUN mkdir /code @@ -8,4 +8,11 @@ RUN pip install -r requirements.txt ADD . /code/ ADD wait.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/wait.sh + +RUN groupadd rescue-kerela && \ + useradd -g rescue-kerela rescue-kerela +RUN chown -R rescue-kerela /code + +USER rescue-kerela + ENTRYPOINT ["/usr/local/bin/wait.sh"]