mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 01:18:27 +08:00
Frontend Dockerfile
This commit is contained in:
parent
72034a04b3
commit
0809627a2e
@ -1,6 +1,7 @@
|
|||||||
#MaxKey Frontend Docker Build
|
#MaxKey Frontend Docker Build
|
||||||
|
|
||||||
FROM node:16.14.2 as builder
|
FROM node:16.14.2
|
||||||
|
#FROM node:16.14.2 as builder
|
||||||
|
|
||||||
LABEL authors="MaxKey <support@maxsso.net>"
|
LABEL authors="MaxKey <support@maxsso.net>"
|
||||||
|
|
||||||
@ -22,7 +23,8 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|||||||
|
|
||||||
#RUN rm -rf /usr/share/nginx/html/*
|
#RUN rm -rf /usr/share/nginx/html/*
|
||||||
|
|
||||||
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html/maxkey
|
COPY dist /usr/share/nginx/html/maxkey
|
||||||
|
#COPY --from=builder /usr/src/app/dist /usr/share/nginx/html/maxkey
|
||||||
|
|
||||||
#CMD ["nginx", "-g", "daemon off;"]
|
#CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
#MaxKey Mgt Frontend Docker Build
|
#MaxKey Mgt Frontend Docker Build
|
||||||
|
|
||||||
FROM node:16.14.2 as builder
|
FROM node:16.14.2
|
||||||
|
#FROM node:16.14.2 as builder
|
||||||
|
|
||||||
LABEL authors="MaxKey <support@maxsso.net>"
|
LABEL authors="MaxKey <support@maxsso.net>"
|
||||||
|
|
||||||
@ -22,7 +23,8 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|||||||
|
|
||||||
#RUN rm -rf /usr/share/nginx/html/*
|
#RUN rm -rf /usr/share/nginx/html/*
|
||||||
|
|
||||||
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html/maxkey-mgt
|
COPY dist /usr/share/nginx/html/maxkey-mgt
|
||||||
|
#COPY --from=builder /usr/src/app/dist /usr/share/nginx/html/maxkey-mgt
|
||||||
|
|
||||||
#CMD ["nginx", "-g", "daemon off;"]
|
#CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user