Spaces:
Sleeping
Sleeping
Download Dockerfile from shreyas231219/Meta-Pytorch-Openenv: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/spaces/shreyas231219/Meta-Pytorch-Openenv/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/shreyas231219/Meta-Pytorch-Openenv/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/shreyas231219/Meta-Pytorch-Openenv/resolve/main/Dockerfile
1.05 kB
| # SQL/Data Cleaning Sandbox Dockerfile for Hugging Face Spaces | |
| # Use official Python 3.11 slim image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install required system packages | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends git curl build-essential && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Copy project files | |
| COPY . /app/ | |
| # Install python dependencies directly bypassing complex managers to ensure maximum Hugging Face compatibility | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir uvicorn openenv-core[core]>=0.2.2 requests>=2.31.0 openai>=1.0.0 groq>=0.4.0 python-dotenv | |
| # OpenEnv needs the workspace in PYTHONPATH | |
| ENV PYTHONPATH="/app" | |
| # Default fallback task | |
| ENV TASK_ID="easy" | |
| # Hugging Face Spaces exposes port 7860 | |
| EXPOSE 7860 | |
| # Command to run the OpenEnv Server directly | |
| ENV ENABLE_WEB_INTERFACE=true | |
| CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"] | |