Download Dockerfile from ERROR418/e2b2api: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/spaces/ERROR418/e2b2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ERROR418/e2b2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ERROR418/e2b2api/resolve/main/Dockerfile
446 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Make run script executable | |
| RUN chmod +x run.sh | |
| # Expose port | |
| EXPOSE 7860 | |
| # Environment variables | |
| ENV PORT=7860 | |
| ENV API_BASE_URL=https://fragments.e2b.dev | |
| ENV API_KEY=sk-123456 | |
| # Command to run the application | |
| CMD ["./run.sh"] |