Spaces:
Sleeping
Sleeping
Download Dockerfile from Bas95/tripplanner-backend: direct link, hf CLI and curl.
- Browser
- Download file 679 Bytes
-
https://huggingface.co/spaces/Bas95/tripplanner-backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Bas95/tripplanner-backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Bas95/tripplanner-backend/resolve/main/Dockerfile
679 Bytes
| FROM python:3.12-slim | |
| # Playwright system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libglib2.0-0 libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 \ | |
| libcups2 libdrm2 libdbus-1-3 libxkbcommon0 libx11-6 libxcomposite1 \ | |
| libxdamage1 libxext6 libxfixes3 libxrandr2 libgbm1 libasound2 \ | |
| libpango-1.0-0 libcairo2 libatspi2.0-0 libx11-xcb1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY backend/requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN playwright install chromium --with-deps | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"] | |