houseofruqaapi / Dockerfile
ShieldX's picture
Upload 13 files
c0fb352 verified
raw
history blame contribute delete
455 Bytes
# Use the official lightweight Node.js image
FROM node:22-alpine
# Set the working directory inside the container
WORKDIR /app
# Copy package files and install dependencies
COPY package*.json ./
RUN npm install
# Copy the rest of the application code
COPY . .
# Hugging Face Spaces expose port 7860 by default
EXPOSE 7860
# Set the PORT environment variable for our server.js to pick up
ENV PORT=7860
# Command to start the app
CMD ["npm", "start"]