wrd_drishti / Dockerfile
devarshia5's picture
Upload 30 files
23b30c3 verified
Raw
History Blame Contribute Delete
446 Bytes
FROM node:20-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies (no better-sqlite3 needed for frontend demo)
RUN npm install --legacy-peer-deps --ignore-scripts
# Copy all files
COPY . .
# Build the app
RUN npm run build
# Expose port 7860 (Hugging Face Spaces default)
EXPOSE 7860
# Start the preview server (vite.config already sets port 7860 and host)
CMD ["npm", "run", "preview"]