raahinaez's picture
Update Dockerfile
26af616 verified
raw
history blame contribute delete
398 Bytes
FROM python:3.11-slim
WORKDIR /app
# Copy app and requirements
COPY app.py ./app.py
COPY requirements.txt ./requirements.txt
# Install dependencies
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 8501
ENV STREAMLIT_SERVER_PORT=8501
ENV STREAMLIT_SERVER_HEADLESS=true
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.enableCORS=false"]