aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-05-28 22:07:20 +0200
committerMateja Marić <mail@matejamaric.com>2021-05-28 22:32:48 +0200
commit4665abe0bd1e47fa8eb26f6f7afd2a85dbe8ee5c (patch)
tree3f6b8735c7f6a6035c315d75fe906eb6ab273fb2
parentc5300bf942c178711e6c973cab7432acc2a73c4d (diff)
downloadnode-playground-4665abe0bd1e47fa8eb26f6f7afd2a85dbe8ee5c.tar.gz
node-playground-4665abe0bd1e47fa8eb26f6f7afd2a85dbe8ee5c.zip
Use `node` user only to run the container.
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index d638b6f..2b013eb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,12 +7,12 @@ WORKDIR /usr/src/app
COPY package*.json ./
-USER node
-
RUN npm clean-install --only=production
COPY . .
EXPOSE ${PORT}
+USER node
+
CMD [ "node", "index.js" ]