Group2255's picture
Update Dockerfile
75598ce verified
Raw History Blame Contribute Delete
530 Bytes
# πŸ“¦ Base Image: Lightweight Python 3.9 with security updates
FROM python:3.9-slim
# πŸ“ Set working directory inside the container
WORKDIR /app
# πŸ“„ Copy necessary application files into the container
COPY requirements.txt .
COPY app.py .
COPY README.md .
# βš™οΈ Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# 🌐 Expose Streamlit default port
EXPOSE 8501
# πŸš€ Launch the Streamlit application
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.enableCORS=false"]