sentiment_analysis / Dockerfile
hatimanees's picture
Update Dockerfile
9189642 verified
raw
history blame
404 Bytes
# Use an official Python runtime
FROM python:3.9-slim
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . .
# Expose ports for Flask and Streamlit
EXPOSE 5000 8501
# Run both Flask and Streamlit using a process manager
CMD ["sh", "-c", "python run.py & streamlit run app.py --server.port=8501 --server.enableCORS=false"]