Maata-App / dockerfile
GitHub Sync
Sync from GitHub
6dbd267
Raw
History Blame Contribute Delete
629 Bytes
# Use official Python image
FROM python:3.9
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy all code
COPY . .
# Streamlit-specific config (disable telemetry and set port)
ENV STREAMLIT_PORT=7860
ENV STREAMLIT_SERVER_HEADLESS=true
ENV STREAMLIT_SERVER_PORT=$STREAMLIT_PORT
ENV STREAMLIT_SERVER_ENABLECORS=false
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
# Run the app
CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.enableCORS", "false"]