Spaces:
Sleeping
Sleeping
| # Base image with Node.js | |
| FROM node:18 | |
| # Install ffmpeg | |
| RUN apt-get update && \ | |
| apt-get install -y ffmpeg && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Create app directory | |
| WORKDIR /app | |
| # Copy all files | |
| COPY . . | |
| # Set full permissions | |
| RUN chmod -R 777 /app | |
| # Install dependencies (no package.json, so specify manually) | |
| RUN npm install express axios fluent-ffmpeg | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["node", "app.js"] |