diff --git a/packages/backend/Dockerfile b/packages/backend/Dockerfile index 64d3605c..41ae4118 100644 --- a/packages/backend/Dockerfile +++ b/packages/backend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine +FROM node:20-alpine WORKDIR /packages COPY . . RUN yarn install --frozen-lockfile diff --git a/packages/frontend/Dockerfile b/packages/frontend/Dockerfile index e7f9eb0c..c18a99c1 100644 --- a/packages/frontend/Dockerfile +++ b/packages/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine AS builder +FROM node:20-alpine AS builder WORKDIR /packages COPY . . RUN yarn install --frozen-lockfile @@ -6,6 +6,6 @@ RUN yarn workspace frontend build # Nginx 서버로 빌드된 파일 서빙 FROM nginx:alpine -COPY --from=builder /packages/frontend/build /usr/share/nginx/html +COPY --from=builder /packages/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]