Skip to content

Instantly share code, notes, and snippets.

@howardpanton
Created February 8, 2018 14:04
Show Gist options
  • Save howardpanton/1d2c5b6ed152342ee53cc64326f6334c to your computer and use it in GitHub Desktop.
Save howardpanton/1d2c5b6ed152342ee53cc64326f6334c to your computer and use it in GitHub Desktop.
Angular Dockerfile
# Pull the latest Node image from Docker
FROM node:latest
# Copy the current directory contents into the container at /app
COPY ./ /app/
# Set the working directory to /app
WORKDIR /app
# Install Node Modules
RUN npm install
# Make port 4200 available to the world outside this container
EXPOSE 4200/tcp
# Start Angular in Watch mode
CMD ["npm", "start", "--", "--host", "0.0.0.0", "--poll", "500"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment