diff --git a/Dockerfile b/Dockerfile index aa9851932a..f351642402 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,11 @@ RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ ENV LANG='en_US.UTF-8' \ LC_ALL='en_US.UTF-8' +RUN groupadd -r app \ + && useradd -r -s /bin/false -g app app \ + && mkdir -p /home/app \ + && chown -R app:app /home/app + # Install Python dependencies RUN pip3 install --no-cache-dir -q -U pip setuptools six RUN pip3 install --no-cache-dir -q spacy==2.1.4