CoolFace
Apppublic

Irannas/Masked_Email_Classification

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile24 linesDownload Raw Back to root
1FROM python:3.9-slim
2
3# Set environment variables to avoid interactive prompts
4ENV PYTHONDONTWRITEBYTECODE=1
5ENV PYTHONUNBUFFERED=1
6
7# Set working directory in the container
8WORKDIR /app
9
10# Copy requirement files and install dependencies
11COPY requirements.txt .
12RUN pip install --no-cache-dir -r requirements.txt
13
14# Copy the rest of the app files
15COPY . .
16
17# Streamlit-specific configs to prevent browser opening
18ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
19
20# Expose the default Streamlit port
21EXPOSE 7860
22
23# Run Streamlit
24CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]