mirror of
https://github.com/xitanggg/open-resume
synced 2024-11-03 09:19:21 +01:00
14 lines
321 B
Docker
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"] |