slidemap3 / Dockerfile
Nanny7's picture
Switch to Vite + React for ultra-fast builds (3 min)
18e394d
raw
history blame contribute delete
386 Bytes
# Simple React App with Vite - HuggingFace Spaces
FROM node:20-bullseye
WORKDIR /app
# Copy package files
COPY package.vite.json ./package.json
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Build the application (very fast)
RUN npm run build
# Expose port
EXPOSE 7860
# Serve static files
RUN npm install -g serve
CMD ["serve", "-s", "dist", "-l", "7860"]