diff options
author | Mateja <mail@matejamaric.com> | 2021-05-28 22:07:20 +0200 |
---|---|---|
committer | Mateja Marić <mail@matejamaric.com> | 2021-05-28 22:32:48 +0200 |
commit | 4665abe0bd1e47fa8eb26f6f7afd2a85dbe8ee5c (patch) | |
tree | 3f6b8735c7f6a6035c315d75fe906eb6ab273fb2 /Dockerfile | |
parent | c5300bf942c178711e6c973cab7432acc2a73c4d (diff) | |
download | node-playground-4665abe0bd1e47fa8eb26f6f7afd2a85dbe8ee5c.tar.gz node-playground-4665abe0bd1e47fa8eb26f6f7afd2a85dbe8ee5c.zip |
Use `node` user only to run the container.
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" ] |