Skip to content

Instantly share code, notes, and snippets.

@duaneleem
Last active August 9, 2016 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duaneleem/290b3b552876e27a8335d267d57bce48 to your computer and use it in GitHub Desktop.
Save duaneleem/290b3b552876e27a8335d267d57bce48 to your computer and use it in GitHub Desktop.
This build is used for live-reload development purposes (HTML / CSS / JS Stack)
## This build is used for live-reload development purposes. You MUST
## mount a volume back to your working directly upon creation.
FROM ubuntu:16.04
MAINTAINER Duane Leem <duaneleem@alumni.ggu.edu>
## Making a random directory to -v mount the container to later.
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
## Install NPM.
RUN apt-get update && apt-get install -y npm
## Install live-server.
RUN npm install -g live-server -y
## Link nodejs to node via symlink.
RUN ln -s /usr/bin/nodejs /usr/bin/node
## Expose Web Port
EXPOSE 8080
## Start live-server.
CMD ["live-server", "--no-browser"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment