diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..601cf0d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +# TEMP: 심사용 임시 배포 Dockerfile — 정식 CI/CD·배포 파이프라인 확정 전까지 사용 +FROM node:20-alpine AS build +WORKDIR /app +COPY package*.json ./ +RUN npm ci +COPY . . +RUN npm run build + +FROM nginx:1.27-alpine +COPY --from=build /app/dist /usr/share/nginx/html +COPY nginx.conf /etc/nginx/conf.d/default.conf +EXPOSE 80 diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..8e4de86 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,9 @@ +# TEMP: 심사용 임시 배포 설정 — 정식 CI/CD·배포 파이프라인 확정 전까지 사용 +server { + listen 80; + root /usr/share/nginx/html; + + location / { + try_files $uri $uri/ /index.html; + } +}