File size: 472 Bytes
4e16dd3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use official Python image
FROM python:3.10-slim

# Set working directory
WORKDIR /code

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

# Copy files into container
COPY . /code

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

# Expose default port
EXPOSE 7860

# Run the Solara app
CMD ["solara", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]