Dockerfile: don't run as root

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-01-12 16:07:07 +08:00
parent 388077a99d
commit cbb1922519

View File

@ -1,6 +1,7 @@
FROM node:8 FROM node:8
COPY . /img COPY --chown=node . /img
USER node
WORKDIR /img WORKDIR /img
RUN npm i RUN npm i
EXPOSE 9119 EXPOSE 9119