File size: 683 Bytes
95aaaae 7143f0b 95aaaae 7aa183f 95aaaae 7143f0b 95aaaae |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# Use official Python image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy all files to the containedocker rmi recommendation-system
COPY . .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt -c constraints.txt
# Optional: install as a local package (important!)
RUN pip install -e .
# Expose Streamlit default port
EXPOSE 7860
# Run your app in both FastAPI and Streamlit
#CMD ["python", "run_both.py", "run"]
# Set Streamlit config (turn off telemetry and headless mode)
ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
# Start Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|