Spaces:
Running
Running
# Use official Node.js runtime as a base image | |
FROM node:18-slim | |
# Set working directory | |
WORKDIR /app | |
# Copy package.json and package-lock.json | |
COPY package*.json ./ | |
# Install dependencies | |
RUN npm install | |
# Copy the rest of your app files | |
COPY . . | |
# Expose the port your app listens on (default 7860 for HF Spaces) | |
EXPOSE 7860 | |
# Start your Node.js app | |
CMD ["node", "index.js"] |