1
mirror of https://github.com/xitanggg/open-resume synced 2024-12-04 20:55:16 +01:00
open-resume/Dockerfile
2023-07-02 17:26:23 -07:00

14 lines
321 B
Docker

FROM node:18-alpine as builder
WORKDIR /app
COPY . .
RUN npm install --include=dev
RUN npm run build
FROM node:18-alpine AS runner
WORKDIR /app
COPY --from=builder /app/.next/standalone .
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/static ./.next/static
EXPOSE 3000
CMD ["node", "server.js"]