File size: 656 Bytes
73112c4
 
 
 
 
61b4ac2
1cea260
73112c4
 
 
 
1cea260
73112c4
 
489bd9c
1cea260
050cf07
61b4ac2
6e602df
73112c4
 
1cea260
73112c4
 
489bd9c
 
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 .

# 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

# UPDATED: Command to run the entry point script
CMD ["python", "server.py"]