mindchain's picture
Upload Dockerfile with huggingface_hub
61e8659 verified
raw
history blame contribute delete
402 Bytes
FROM node:20-alpine
WORKDIR /app
# Copy package files
COPY package.json ./
# Install dependencies
RUN npm install
# Copy all source files
COPY . .
# Build the app with Vite (includes Tailwind processing)
RUN npm run build
# Install serve to serve static files
RUN npm install -g serve
# Expose port 7860 for HF Spaces
EXPOSE 7860
# Serve the built app
CMD ["serve", "-s", "dist", "-l", "7860"]