AR_fetchtry / Dockerfile
FaizanShaikh1's picture
Update Dockerfile
3fa89d7 verified
raw
history blame contribute delete
654 Bytes
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"]