Spaces:
Sleeping
Sleeping
File size: 281 Bytes
dc7c195 cf88b30 7fcd8a7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Stage 1: Build the app
FROM node:20 AS build
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
# Stage 2: Serve the app
FROM node:20 AS serve
WORKDIR /app
RUN npm install -g serve
COPY --from=build /app/dist ./dist
EXPOSE 7860
CMD ["serve", "-s", "dist", "-l", "7860"] |