Skip to content

Commit c4b6f28

Browse files
authored
Updated comments in the Dockerfile (#1983)
1 parent 8ed468e commit c4b6f28

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

Dockerfile

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1-
# Usage (given build times depend on machine):
1+
# Usage:
22
#
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:
74
# docker build -t angular-starter .
85
#
9-
# Clean (remove intermidiet images):
10-
# docker rmi -f $(docker images -f "dangling=true" -q)
11-
#
126
# 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
148
#
159
# 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
1711

1812
# Stage 1, based on Node.js, to build and compile Angular
1913

@@ -39,7 +33,7 @@ COPY ./config/nginx-custom.conf /etc/nginx/conf.d/default.conf
3933
## Remove default nginx website
4034
RUN rm -rf /usr/share/nginx/html/*
4135

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
4337
COPY --from=builder /ng-app/dist /usr/share/nginx/html
4438

45-
CMD ["nginx", "-g", "daemon off;"]
39+
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)