Explorar o código

chore: 更新Dockerfile

gatsby hai 1 mes
pai
achega
d840aed0ad
Modificáronse 1 ficheiros con 9 adicións e 7 borrados
  1. 9 7
      frontend/Dockerfile

+ 9 - 7
frontend/Dockerfile

@@ -1,19 +1,21 @@
-FROM node:24-alpine AS builder
+# FROM node:24-alpine AS builder
 
-WORKDIR /app
+# WORKDIR /app
 
-COPY package.json ./
+# COPY package.json ./
 
-RUN npm install -g pnpm && pnpm install
+# RUN npm install -g pnpm && pnpm install
 
-COPY . .
+# COPY . .
 
-RUN pnpm build
+# RUN pnpm build
 
 
 FROM nginx:stable-alpine
 
-COPY --from=builder /app/dist /usr/share/nginx/html
+# COPY --from=builder /app/dist /usr/share/nginx/html
+
+COPY ./dist /usr/share/nginx/html
 
 COPY nginx.conf /etc/nginx/conf.d/default.conf