Created
July 18, 2016 01:52
-
-
Save cigzigwon/5d7b15030e16ae7aaebf24349412c324 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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