This commit is contained in:
parent
2b534eda80
commit
21a8996ba4
|
|
@ -1,4 +1,7 @@
|
||||||
FROM node:24-alpine AS build
|
ARG NODE_IMAGE=docker.m.daocloud.io/library/node:24-alpine
|
||||||
|
ARG NGINX_IMAGE=docker.m.daocloud.io/library/nginx:1.27-alpine
|
||||||
|
|
||||||
|
FROM ${NODE_IMAGE} AS build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
@ -16,7 +19,7 @@ ENV VITE_APP_ID=$VITE_APP_ID
|
||||||
|
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
FROM nginx:1.27-alpine AS runtime
|
FROM ${NGINX_IMAGE} AS runtime
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
|
NODE_IMAGE: docker.m.daocloud.io/library/node:24-alpine
|
||||||
|
NGINX_IMAGE: docker.m.daocloud.io/library/nginx:1.27-alpine
|
||||||
VITE_BASE_URL: http://twin.batiao8.com
|
VITE_BASE_URL: http://twin.batiao8.com
|
||||||
VITE_APP_ID: "10063"
|
VITE_APP_ID: "10063"
|
||||||
image: app-twins:latest
|
image: app-twins:latest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue