File size: 684 Bytes
73112c4
 
 
 
 
61b4ac2
1cea260
73112c4
 
 
 
1cea260
73112c4
 
050cf07
1cea260
050cf07
61b4ac2
6e602df
73112c4
 
1cea260
73112c4
 
 
 
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
# Use an official Python runtime as a parent image
FROM python:3.10-slim

# Set the working directory in the container
WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

# Copy the requirements file
COPY requirements.txt .

# We upgrade pip/setuptools/wheel first, then install the core.
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
    pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application code
COPY . .

# Expose port 8000
EXPOSE 8000

# Command to run the OpenEnv server
CMD ["uvicorn", "env:app", "--host", "0.0.0.0", "--port", "8000"]