Skip to content

Instantly share code, notes, and snippets.

@cigzigwon
Created July 18, 2016 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cigzigwon/5d7b15030e16ae7aaebf24349412c324 to your computer and use it in GitHub Desktop.
Save cigzigwon/5d7b15030e16ae7aaebf24349412c324 to your computer and use it in GitHub Desktop.
FROM node:argon
RUN useradd -ms /bin/bash exp
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
# Setup rights
RUN chown -R exp /usr/src/app
RUN chown -R exp /root/.npm
RUN chown -R exp /usr/local/lib/node_modules/
USER exp
EXPOSE 8080
CMD [ "npm", "start" ]
# Uncomment for tests
# CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment