Browse Source

feat(docker): Run API processes using pelias user

This is enabled by the work in https://github.com/pelias/baseimage/pull/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
(https://github.com/pelias/baseimage/pull/8), so it can be removed here.
pull/1191/head
Julian Simioni 6 years ago
parent
commit
1753eb5a9c
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 4
      Dockerfile

4
Dockerfile

@ -1,11 +1,7 @@
# base image # base image
FROM pelias/baseimage FROM pelias/baseimage
RUN useradd -ms /bin/bash pelias
USER pelias USER pelias
# maintainer information
LABEL maintainer="pelias.team@gmail.com"
# Where the app is built and run inside the docker fs # Where the app is built and run inside the docker fs
ENV WORK=/home/pelias ENV WORK=/home/pelias
WORKDIR ${WORK} WORKDIR ${WORK}

Loading…
Cancel
Save