This repository has been archived on 2026-01-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
markdown2png/Dockerfile
riccardo 480d4f7736
Some checks failed
Deploy / lint-build-deploy (push) Failing after 1m57s
fix: handle public folder
2026-01-18 16:53:16 +00:00

24 lines
423 B
Docker

FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:18-alpine
WORKDIR /app
ENV NODE_ENV=production
# Copy only production dependencies and built files
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public 2>/dev/null || true
EXPOSE 3000
CMD ["node", "server.js"]