Update: Dockerfile
This commit is contained in:
parent
1ec75c103b
commit
20ff9d0477
19
Dockerfile
19
Dockerfile
@ -1,8 +1,6 @@
|
|||||||
## ANGULAR THEME BUILD
|
|
||||||
|
|
||||||
FROM node:16-alpine as angular
|
FROM node:16-alpine as angular
|
||||||
|
|
||||||
WORKDIR angular
|
WORKDIR app
|
||||||
|
|
||||||
COPY inc ./
|
COPY inc ./
|
||||||
|
|
||||||
@ -10,6 +8,17 @@ RUN npm install -g @angular/cli
|
|||||||
RUN ng config -g cli.warnings.versionMismatch false
|
RUN ng config -g cli.warnings.versionMismatch false
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
RUN npm run build:ssr --prod --proxy-config
|
RUN ng build
|
||||||
|
|
||||||
CMD npm run serve:ssr -c production --proxy-config
|
# nginx base image
|
||||||
|
FROM nginx:1.16.0-alpine
|
||||||
|
|
||||||
|
RUN chmod 777 /var/cache/nginx /var/run
|
||||||
|
|
||||||
|
# copy static contents of project to nginx html
|
||||||
|
RUN rm -rf /usr/share/nginx/html/*
|
||||||
|
COPY --from=angular /app/dist/cear-rio/browser /usr/share/nginx/html
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
Loading…
Reference in New Issue
Block a user