PrithviGuardian / Dockerfile
Varad Bakshi
Fresh upload
e7427b5
Raw
History Blame Contribute Delete
446 Bytes
# Use Node.js version 20
FROM node:20
# Create the folder for the app
WORKDIR /app
# Copy the package files first to install libraries
COPY package*.json ./
# Install all the dependencies
RUN npm install
# Copy the rest of your project files
COPY . .
# Build the project (This turns your React code into a website)
RUN npm run build
# Hugging Face Spaces requires Port 7860
ENV PORT=7860
EXPOSE 7860
# Start the server
CMD ["npm", "start"]