Spaces:
Sleeping
Sleeping
Download Dockerfile from Darshee245/CORTEXA2: direct link, hf CLI and curl.
- Browser
- Download file 647 Bytes
-
https://huggingface.co/spaces/Darshee245/CORTEXA2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Darshee245/CORTEXA2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Darshee245/CORTEXA2/resolve/main/Dockerfile
647 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Install Nginx | |
| RUN apt-get update && \ | |
| apt-get install -y nginx && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| COPY backend/requirements.txt ./requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy backend | |
| COPY backend/ ./ | |
| # Copy frontend to Nginx web root | |
| COPY frontend/ /usr/share/nginx/html/ | |
| # Copy Nginx configuration | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| # Copy startup script | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| EXPOSE 7860 | |
| CMD ["/start.sh"] |