File size: 471 Bytes
fee2f22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM python:3.11-slim

WORKDIR /app

# Install dependencies
RUN pip install --no-cache-dir \
    fastapi \
    uvicorn \
    requests \
    openai \
    pydantic

# Copy environment code
COPY envs/data_cleaning_env/server/ ./server/
COPY envs/data_cleaning_env/tasks/ ./tasks/

# Copy required files
COPY inference.py .
COPY openenv.yaml .

# Expose port
EXPOSE 7860

# Start server
CMD ["python", "-m", "uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]