| # Gunakan Node.js base image | |
| FROM node:18-alpine | |
| # Install git untuk cloning repository | |
| RUN apk add --no-cache git | |
| # Set working directory | |
| WORKDIR /app | |
| # Clone repository dari GitHub | |
| RUN git clone https://github.com/siputzx/simpel-cors-proxy.git . | |
| # Install dependencies | |
| RUN npm install | |
| # Expose port (Hugging Face menggunakan port 7860 secara default) | |
| EXPOSE 7860 | |
| # Set environment variable untuk port | |
| ENV PORT=7860 | |
| # Start the application | |
| CMD ["npm", "start"] |