Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Dockerfile example.
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