1
- # Usage (given build times depend on machine) :
1
+ # Usage:
2
2
#
3
- # Build SMALL image (no cache; ~20MB, time for build=rebuild = ~360s):
4
- # docker build --squash="true" -t angular-starter .
5
- #
6
- # Build FAST (rebuild) image (cache; >280MB, build time ~360s, rebuild time ~80s):
3
+ # Build image:
7
4
# docker build -t angular-starter .
8
5
#
9
- # Clean (remove intermidiet images):
10
- # docker rmi -f $(docker images -f "dangling=true" -q)
11
- #
12
6
# Run image (on localhost:8080):
13
- # docker run --name angular-starter -p 8080:80 angular-starter &
7
+ # docker run --name angular-starter -p 8080:80 angular-starter
14
8
#
15
9
# Run image as virtual host (read more: https://github.com/jwilder/nginx-proxy):
16
- # docker run -e VIRTUAL_HOST=angular-starter.your-domain.com --name angular-starter angular-starter &
10
+ # docker run -e VIRTUAL_HOST=angular-starter.your-domain.com --name angular-starter angular-starter
17
11
18
12
# Stage 1, based on Node.js, to build and compile Angular
19
13
@@ -39,7 +33,7 @@ COPY ./config/nginx-custom.conf /etc/nginx/conf.d/default.conf
39
33
# # Remove default nginx website
40
34
RUN rm -rf /usr/share/nginx/html/*
41
35
42
- # # From ‘builder’ stage copy over the artifacts in dist folder to default nginx public folder
36
+ # # From ‘builder’ stage copy over the artifacts in dist folder to default nginx public folder
43
37
COPY --from=builder /ng-app/dist /usr/share/nginx/html
44
38
45
- CMD ["nginx" , "-g" , "daemon off;" ]
39
+ CMD ["nginx" , "-g" , "daemon off;" ]
0 commit comments