Created
April 12, 2017 00:34
Star
You must be signed in to star a gist
Dockerfile example.
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:boron | |
# Create app directory | |
RUN mkdir -p /usr/src/veggiemap | |
WORKDIR /usr/src/veggiemap | |
# Install app dependencies | |
# RUN npm install -g webpack karma http-server | |
RUN git clone https://github.com/starkland/veggiemap.git . | |
RUN npm install | |
RUN npm uninstall webpack --save-dev | |
RUN npm install webpack@2.2.0 --save-dev | |
# Bundle app source | |
COPY . /usr/src/veggiemap | |
# Mapped the port by docker daemon | |
EXPOSE 8080 | |
# Run the commands | |
CMD [ "npm", "start" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment