File size: 723 Bytes
a40c2f0
39a18fa
 
a40c2f0
39a18fa
a40c2f0
39a18fa
 
 
 
a40c2f0
39a18fa
 
a40c2f0
39a18fa
 
 
a40c2f0
39a18fa
 
 
a40c2f0
39a18fa
 
a40c2f0
39a18fa
 
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

# Use a base image with Python
FROM python:3.10-slim

# Install system dependencies
RUN apt-get update && apt-get install -y \
    libgl1-mesa-glx libglu1-mesa freeglut3 \
    libx11-6 libxext6 libxi6 libxmu6 libgl1-mesa-dev \
    libglu1-mesa-dev libxmu-dev libxi-dev \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive

# Install Python dependencies
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

# Copy app
COPY app.py /app/app.py
WORKDIR /app

# Expose Streamlit default port
EXPOSE 7860

# Run the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]