S
Size: a a a
S
AS
S
DS
S
AS
AS
S
AS
AS
AS
S
AS
AS
k
DS
$ cat package.json
{
...
...
"scripts": {
"build": "ng --help"
},
"dependencies": {
"angular-cli": "^1.0.0-beta.28.3"
}
}
$ cat Dockerfile
FROM node:14-alpine
WORKDIR /app
COPY ./package*.json ./
RUN npm ci
RUN npm run build
$ docker build -t angular-ng-test .
Sending build context to Docker daemon 1.529MB
Step 1/5 : FROM node:14-alpine
14-alpine: Pulling from library/node
cbdbe7a5bc2a: Pull complete
4c504479294d: Pull complete
1e557b93d557: Pull complete
227291017118: Pull complete
Digest: sha256:5a940b79d5655cc688cfb319bd4d0f18565bc732ae19fab6106daaa72aeb7a63
Status: Downloaded newer image for node:14-alpine
---> 9db54a688554
Step 2/5 : WORKDIR /app
---> Running in e0b12a217b4a
Removing intermediate container e0b12a217b4a
---> d2d1f7632d2f
Step 3/5 : COPY ./package*.json ./
---> 0856539cb237
Step 4/5 : RUN npm ci
...
...
Step 5/5 : RUN npm run build
---> Running in d0515ef03810
> root@1.0.0 build /app
> ng --help
...
...
ng build <options...>
Builds your app and places it into the output path (dist/ by default).
aliases: b
--target (String) (Default: development)
...
DS
GG