File size: 637 Bytes
92c98ca
 
 
 
 
 
 
 
87e8a68
 
92c98ca
 
 
 
 
ce20182
87e8a68
dae63d1
d4a6b52
dae63d1
87e8a68
92c98ca
 
 
 
 
 
 
 
 
ce20182
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
# Base image
FROM python:3.11-slim

# Set working directory
WORKDIR /app/env

# Install system dependencies (if needed)
RUN apt-get update && apt-get install -y \
  git \
  && rm -rf /var/lib/apt/lists/*

# Copy environment files
COPY . .

# Install Python dependencies
#
#RUN pip install --no-cache-dir -e .

RUN pip install git+https://github.com/meta-pytorch/OpenEnv.git

RUN pip install --no-cache-dir -r ./requirements.txt

# Expose port
EXPOSE 8000

# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV ENABLE_WEB_INTERFACE=true

# Run the server
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]