libremdb/Dockerfile
ngn e6ebf6ca78
All checks were successful
docker / docker (push) Successful in 1m39s
remove the depend docker command
Signed-off-by: ngn <ngn@ngn.tf>
2025-05-13 01:43:26 +03:00

26 lines
520 B
Docker

FROM node:lts-alpine AS builder
WORKDIR /app
COPY . .
ENV NODE_ENV=production
RUN npm install -g pnpm
RUN pnpm install
RUN pnpm build
FROM node:lts-alpine AS runner
WORKDIR /app
COPY --from=builder /app/next.config.mjs ./
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
ENV NEXT_TELEMETRY_DISABLED=1
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=3000
CMD ["./node_modules/next/dist/bin/next", "start"]