Spaces:
Sleeping
Sleeping
File size: 432 Bytes
1acb655 4bea261 1acb655 4bea261 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build
FROM node:22-alpine AS runtime
WORKDIR /app
COPY --from=build /app/dist ./dist
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/public ./public
ENV HOST=0.0.0.0
ENV PORT=7860
EXPOSE 7860
CMD ["node", "./dist/server/entry.mjs"]
|