Spaces:
Runtime error
Runtime error
Download Dockerfile from TeamGenKI/Inference-API: direct link, hf CLI and curl.
- Browser
- Download file 490 Bytes
-
https://huggingface.co/spaces/TeamGenKI/Inference-API/resolve/47031d76a3d5c23efe1a9eedaefa67cb4e6eb821/Dockerfile
- Command line
-
hf download hf://spaces/TeamGenKI/Inference-API@47031d76a3d5c23efe1a9eedaefa67cb4e6eb821/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TeamGenKI/Inference-API/resolve/47031d76a3d5c23efe1a9eedaefa67cb4e6eb821/Dockerfile
490 Bytes
| # Use Python 3.12 slim image as base | |
| FROM python:3.12-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements first to leverage Docker cache | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code | |
| COPY app/ ./main/ | |
| # Set environment variables | |
| ENV PYTHONPATH=/app | |
| ENV PYTHONUNBUFFERED=1 | |
| # Expose the port your application runs on. | |
| EXPOSE 7680 | |
| # Command to run the application | |
| CMD ["python", "-m", "app.main"] |