Files
bio_frontend/Dockerfile

18 lines
382 B
Docker
Raw Permalink Normal View History

2025-08-27 16:02:05 +09:00
# --- build stage ---
FROM node:20-alpine AS build
2025-08-08 13:11:33 +09:00
WORKDIR /app
COPY package*.json ./
2025-08-27 16:02:05 +09:00
RUN npm ci
2025-08-08 13:11:33 +09:00
COPY . .
2025-08-27 16:02:05 +09:00
# 환경에 맞게: npm run build or nuxi build
RUN npm run build
2025-08-08 13:11:33 +09:00
2025-08-27 16:02:05 +09:00
# --- run stage ---
FROM node:20-alpine
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
# Nitro 출력만 복사
COPY --from=build /app/.output ./.output
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]