소스 검색

chore: 更新Dockerfile

gatsby 1 개월 전
부모
커밋
d840aed0ad
1개의 변경된 파일9개의 추가작업 그리고 7개의 파일을 삭제
  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