Spaces:
Sleeping
Sleeping
File size: 512 Bytes
1829efb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | FROM node:20-slim
# Set the working directory in the container
WORKDIR /workspace
# Copy the entire project
COPY . .
# Move into the app directory where package.json is located
WORKDIR /workspace/app
# Install dependencies
RUN npm install
# Expose Hugging Face Space's default port
EXPOSE 7860
# Start the development server (which includes the file upload backend)
# Must bind to 0.0.0.0 to be accessible outside the Docker container
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "7860"]
|