Last active
August 9, 2016 21:04
-
-
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 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
## 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