Files
bio_frontend/Dockerfile
2025-08-27 16:02:05 +09:00

18 lines
382 B
Docker

# --- build stage ---
FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
# 환경에 맞게: npm run build or nuxi build
RUN npm run build
# --- 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"]