eCourt-Doc-Edit/web/Dockerfile

19 lines
307 B
Text
Raw Normal View History

2026-09-21 19:41:26 +07:00
FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install --no-fund --no-audit
COPY . .
RUN npm run build
FROM node:20-alpine AS final
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
EXPOSE 3000
COPY --from=build /app/.output ./.output
CMD ["node", ".output/server/index.mjs"]