Created
February 8, 2018 14:04
-
-
Save howardpanton/1d2c5b6ed152342ee53cc64326f6334c to your computer and use it in GitHub Desktop.
Angular Dockerfile
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
# 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