From 551c771f76fa1cae5ef3ff01d4438f01d29ad0b7 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Wed, 12 Sep 2018 18:41:03 -0400 Subject: [PATCH] feat(docker): run as pelias user This uses the work in https://github.com/pelias/baseimage/pull/2 to run processes as the `pelias` user. Running as a non-root user is ideal from a security perspective. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 807a905..84ac262 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,5 +15,7 @@ ADD . ${WORKDIR} # run tests RUN npm test +USER pelias + # set entrypoint -ENTRYPOINT [ "./bin/fuzzy-tester" ] \ No newline at end of file +ENTRYPOINT [ "./bin/fuzzy-tester" ]