Spaces:
Sleeping

Carpool_final / Dockerfile
Huzaifa1435's picture
Update Dockerfile
1be660f verified
Raw History Blame Contribute Delete
463 Bytes
# Use Node.js 18 slim image
FROM node:18-slim
# Set working directory
WORKDIR /app
# Copy package files first (for better caching)
COPY package*.json ./
# Install dependencies using npm install (not ci, to avoid lock file issues)
RUN npm install --production
# Copy all source files
COPY . .
# Expose port 7860 (Hugging Face default)
EXPOSE 7860
# Set environment variables
ENV NODE_ENV=production
ENV PORT=7860
# Start the application
CMD ["npm", "start"]