fix: docker build failure
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
node_modules
|
||||||
|
npm-debug.log
|
||||||
|
Dockerfile*
|
||||||
|
docker-compose*
|
||||||
|
.dockerignore
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
README.md
|
||||||
|
LICENSE
|
||||||
|
.vscode
|
||||||
|
dist
|
||||||
|
.github
|
||||||
+3
-1
@@ -8,12 +8,14 @@ COPY package.json /usr/src/app/package.json
|
|||||||
|
|
||||||
RUN npm install -g @angular/cli@9.1.12
|
RUN npm install -g @angular/cli@9.1.12
|
||||||
|
|
||||||
CMD ng build
|
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN ng build --prod
|
||||||
|
|
||||||
FROM nginx:1.19.3
|
FROM nginx:1.19.3
|
||||||
|
|
||||||
COPY --from=builder /usr/src/app/dist/web-app /usr/share/nginx/html
|
COPY --from=builder /usr/src/app/dist/web-app /usr/share/nginx/html
|
||||||
|
|||||||
Reference in New Issue
Block a user