Spaces:
Sleeping
Sleeping
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Install Nginx, PHP 8.1, and MariaDB | |
| RUN apt-get update && apt-get install -y \ | |
| nginx \ | |
| php8.1-fpm \ | |
| php8.1-mysql \ | |
| php8.1-cli \ | |
| mariadb-server \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set working directory to where Hugging Face puts repository files | |
| WORKDIR /app | |
| # Copy configuration and startup scripts | |
| COPY nginx.conf /etc/nginx/sites-available/default | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| CMD ["/start.sh"] |