Portfolio-Backend / Dockerfile
aayushhh-operator's picture
Create Dockerfile
05cf987 verified
Raw
History Blame Contribute Delete
314 Bytes
# Use the official Node.js image
FROM node:18
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Expose port 7860 (Standard for Hugging Face Spaces)
EXPOSE 7860
# Start the application
CMD ["node", "server.js"]