Spaces:
Running
Running
File size: 268 Bytes
5f138d4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY --from=builder /app/dist ./dist
EXPOSE 7860
CMD ["node", "dist/index.js"]
|