Spaces:
Sleeping

asd / Dockerfile
GitHub Actions
deploy: clean snapshot
7f81110
Raw History Blame Contribute Delete
495 Bytes
# -----------------------------
# 1️⃣ Build Stage
# -----------------------------
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# -----------------------------
# 2️⃣ Production Stage
# -----------------------------
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY --from=builder /app/dist ./dist
ENV NODE_ENV=production
ENV PORT=7860
EXPOSE 7860
CMD ["node", "dist/index.cjs"]