File size: 654 Bytes
982e8f1
11baa78
3fa89d7
f58a579
 
 
982e8f1
 
 
3fa89d7
 
f58a579
11baa78
f58a579
 
11baa78
f58a579
 
 
11baa78
f58a579
11baa78
 
f58a579
 
11baa78
f58a579
 
 
982e8f1
 
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
FROM python:3.11-slim

# Install system dependencies including Tkinter
RUN apt-get update && apt-get install -y \
    libgl1-mesa-glx \
    libglib2.0-0 \
    libsm6 \
    libxext6 \
    libxrender-dev \
    python3-tk \
    tk-dev \
    && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application code
COPY . .

# Create directories for models and temp files
RUN mkdir -p models temp

# Expose port for Shiny
EXPOSE 8000

# Run the application with Shiny mode
CMD ["python", "app.py", "--shiny"]