File size: 1,054 Bytes
615101f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# 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"]