Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Usage: | ||
# | ||
# Build image: | ||
# docker build -t angular-starter . | ||
# | ||
# Run image (on localhost:8080): | ||
# docker run --name angular-starter -p 8080:80 angular-starter | ||
# | ||
# Run image as virtual host (read more: https://github.com/jwilder/nginx-proxy): | ||
# docker run -e VIRTUAL_HOST=angular-starter.your-domain.com --name angular-starter angular-starter | ||
|
||
FROM node:8.9.4-alpine as builder | ||
|
||
COPY package.json ./ | ||
|
||
## Storing node modules on a separate layer will prevent unnecessary npm installs at each build | ||
RUN npm i && mkdir /ng-app && mv ./node_modules ./ng-app | ||
|
||
WORKDIR /ng-app | ||
|
||
COPY . . |
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