File size: 832 Bytes
f762b8d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# OpenEnv SQL Analyst Environment
# Base: python:3.10-slim for minimal memory footprint (<8GB RAM limit)

FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \

    gcc \
    && rm -rf /var/lib/apt/lists/*

# Copy requirements first for layer caching
COPY requirements.txt .

# Install Python dependencies WITH UV added for the hotfix
RUN pip install --no-cache-dir -r requirements.txt uv

# Copy application code
COPY . .

# Expose the OpenEnv serving port
EXPOSE 7860

# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1

# Replaced deprecated 'openenv serve' with the command the runtime error requested
CMD ["uv", "run", "--project", ".", "server", "--port", "7860"]