Spaces:
Running
Running
File size: 390 Bytes
1c34a81 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Build the Vite React application.
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build
# Serve the static production build on Hugging Face Spaces' expected port.
FROM node:22-alpine
WORKDIR /app
RUN npm install --global serve
COPY --from=build /app/dist ./dist
EXPOSE 7860
CMD ["serve", "-s", "dist", "-l", "7860"]
|