| # Use your pre-built image from Docker Hub as the base | |
| FROM openinteligence/oi-app:latest | |
| # Overwrite the MAIN nginx configuration to use /tmp for logs/temp files | |
| COPY nginx-main-hf.conf /etc/nginx/nginx.conf | |
| # Overwrite the default SERVER configuration to listen on port 7860 | |
| COPY nginx-hf.conf /etc/nginx/conf.d/default.conf | |
| RUN chmod 777 /tmp | |
| # Expose the port Hugging Face expects | |
| EXPOSE 7860 | |
| # CMD is inherited from the base image: ["nginx", "-g", "daemon off;"] | |
| CMD ["nginx", "-g", "daemon off;"] |