Skip to content

Commit

Permalink
feat(docker): run as pelias user
Browse files Browse the repository at this point in the history
This uses the work in pelias/docker-baseimage#2 to run
processes as the `pelias` user. Running as a non-root user is ideal from a
security perspective.
  • Loading branch information
orangejulius committed Sep 12, 2018
1 parent 558f38a commit 551c771
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ ADD . ${WORKDIR}
# run tests
RUN npm test

USER pelias

# set entrypoint
ENTRYPOINT [ "./bin/fuzzy-tester" ]
ENTRYPOINT [ "./bin/fuzzy-tester" ]

0 comments on commit 551c771

Please sign in to comment.