Created
February 7, 2018 11:46
-
-
Save praveenweb/1c2f7f7182babc5da18869e19c38cad2 to your computer and use it in GitHub Desktop.
This file contains 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:carbon | |
# Create app directory | |
WORKDIR /app | |
# Install app dependencies | |
# RUN npm -g install serve | |
# A wildcard is used to ensure both package.json AND package-lock.json are copied | |
COPY package*.json ./ | |
RUN npm install | |
# Bundle app source | |
COPY src /app | |
# Build react/vue/angular bundle static files | |
# RUN npm run build | |
EXPOSE 8080 | |
# If serving static files | |
#CMD ["serve", "-s", "dist", "-p", "8080"] | |
CMD [ "node", "server.js" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment