Files
OpenClaw-bot-review/Dockerfile
T

28 lines
433 B
Docker

# Build stage
FROM node:22-alpine AS builder
WORKDIR /app
COPY . .
RUN npm install && npm run build
# Production stage
FROM node:22-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
RUN npm install next --save
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
CMD ["npm", "start"]