Spaces:
Sleeping
Sleeping
Download Dockerfile from krishpotanwar/sql-repair-env: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/spaces/krishpotanwar/sql-repair-env/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/krishpotanwar/sql-repair-env/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/krishpotanwar/sql-repair-env/resolve/main/Dockerfile
646 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # System deps | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy & install Python deps first for layer caching | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application, including the prebuilt frontend bundle in frontend/dist | |
| COPY . . | |
| # Install package so [project.scripts] is callable | |
| RUN pip install --no-cache-dir -e . | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PORT=8000 | |
| EXPOSE 8000 | |
| # Use the entry point declared in pyproject.toml | |
| CMD ["python", "-m", "server.app"] | |