Skip to content

Instantly share code, notes, and snippets.

@thulioph
Created April 12, 2017 00:34
Show Gist options
  • Select an option

  • Save thulioph/79a09c21fcbdba4e2f7d3b84c17a69dc to your computer and use it in GitHub Desktop.

Select an option

Save thulioph/79a09c21fcbdba4e2f7d3b84c17a69dc to your computer and use it in GitHub Desktop.
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