Skip to content

Commit

Permalink
feat(docker): Run API processes using pelias user
Browse files Browse the repository at this point in the history
This is enabled by the work in pelias/docker-baseimage#2 and lets us ensure the API is run as
a non-root user.

Additionally the maintainer label is now set in the baseimage as of
(pelias/docker-baseimage#8), so it can be removed here.
  • Loading branch information
orangejulius committed Sep 7, 2018
1 parent 66fb60c commit 1753eb5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# base image
FROM pelias/baseimage
RUN useradd -ms /bin/bash pelias
USER pelias

# maintainer information
LABEL maintainer="pelias.team@gmail.com"

# Where the app is built and run inside the docker fs
ENV WORK=/home/pelias
WORKDIR ${WORK}
Expand Down

0 comments on commit 1753eb5

Please sign in to comment.