Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM node:8
RUN groupadd -r nodejs && useradd -m -r -g -s /bin/bash nodejs nodejs
USER nodejs
WORKDIR /home/nodejs/app
COPY package.json .
RUN npm install --production
COPY . .
ENV NODE_ENV production
CMD ["node.js", "index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.