File size: 650 Bytes
bb89e8d
 
 
 
81b0b1a
 
bb89e8d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81b0b1a
 
 
bb89e8d
 
81b0b1a
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
FROM python:3.11-slim

WORKDIR /app

# Copy all warehouse environment files (for HF Spaces deployment)
COPY . /app/

# Install Python dependencies
RUN pip install --no-cache-dir \
    fastapi==0.104.1 \
    uvicorn==0.24.0 \
    pydantic==2.5.0 \
    requests==2.31.0

# Expose port
EXPOSE 8000

# Environment variables with defaults
ENV DIFFICULTY_LEVEL=2
ENV GRID_WIDTH=0
ENV GRID_HEIGHT=0
ENV NUM_PACKAGES=0
ENV MAX_STEPS=0
ENV RANDOM_SEED=0

# Set Python path to include current directory
ENV PYTHONPATH=/app

# Run the server
ENV ENABLE_WEB_INTERFACE=true
CMD ["python", "-m", "uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]