Spaces:
Sleeping
Sleeping
| # Use the official Node.js image | |
| FROM node:18 | |
| # Set working directory | |
| WORKDIR /app | |
| # Install FFmpeg for video processing | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| # Copy package files and install dependencies | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Copy the rest of the application | |
| COPY . . | |
| # Set environment variables (Hugging Face will provide these) | |
| ENV PORT=7860 | |
| # Expose the port | |
| EXPOSE 7860 | |
| # Command to run the application | |
| CMD ["node", "server.js"] | |