FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tutorial-angular/docker/Dockerfile at master · caecae/tutorial-angular · GitHub
caecae
/
tutorial-angular
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
26
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
tutorial-angular
/
docker
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (23 loc) · 807 Bytes
Breadcrumbs
tutorial-angular
/
docker
/
Dockerfile
Copy path
File metadata and controls
30 lines (23 loc) · 807 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
https://docs.docker.com/develop/develop-images/multistage-build/
#
Multi-stage build:
#
# environment setup stage - development container
#
https://hub.docker.com/_/node/
FROM
node:12.14 AS setup
ARG
NG_VERSION=8.3.21
#
install chrome for testing
RUN
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c
'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
RUN
apt-get update && \
apt-get install -yq google-chrome-stable && \
npm install -g @angular/cli@${NG_VERSION}
#
set WORKDIR
WORKDIR
/wip
ENV
PATH /wip/node_modules/.bin:$PATH
#
Multi-stage build:
#
# builder/compiler stage
FROM
setup AS builder
#
add app
COPY
. /wip
RUN
npm install
#
start app
CMD
ng serve --host 0.0.0.0
Back
|
FazBrowse Home
|
New Git URL