File size: 539 Bytes
ef47fc2
9ed9117
 
 
ef47fc2
 
 
9ed9117
ef47fc2
 
 
9ed9117
ef47fc2
 
9ed9117
ef47fc2
 
 
 
9ed9117
 
ef47fc2
 
 
9ed9117
ef47fc2
 
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
FROM python:3.11

WORKDIR /app

# Copy dependency files
COPY pyproject.toml ./
COPY requirements.txt* ./

# Install dependencies
RUN pip install --no-cache-dir --upgrade pip
RUN pip install streamlit pillow

# Copy application files
COPY . .

# Create data directories
RUN mkdir -p data/images

# Expose port
EXPOSE 8501

# Set environment variables for Streamlit
ENV STREAMLIT_SERVER_PORT=8501
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0

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