Skip to content

Commit

Permalink
Create non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Jul 10, 2019
1 parent 6fc8650 commit ed52c3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed52c3b

Please sign in to comment.