Skip to content

Commit 73ab6de

Browse files
committed
fix: docker build failure
1 parent 6770f0b commit 73ab6de

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.dockerignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules
2+
npm-debug.log
3+
Dockerfile*
4+
docker-compose*
5+
.dockerignore
6+
.git
7+
.gitignore
8+
README.md
9+
LICENSE
10+
.vscode
11+
dist
12+
.github

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ COPY package.json /usr/src/app/package.json
88

99
RUN npm install -g @angular/[email protected]
1010

11-
CMD ng build
1211

1312
RUN npm install
1413

14+
1515
COPY . .
1616

17+
RUN ng build --prod
18+
1719
FROM nginx:1.19.3
1820

1921
COPY --from=builder /usr/src/app/dist/web-app /usr/share/nginx/html

0 commit comments

Comments
 (0)