financial_chatbot / Dockerfile
ahmedelbeshry's picture
Update Dockerfile
3191ad4 verified
raw history blame
No virus
687 Bytes
# Use an official Python runtime as a parent image
FROM python:3.11-slim
# Set environment variables to avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy and set environment variables from .env file
#COPY .env .env
# Expose the port the Flask app runs on
EXPOSE 5000
# Expose the port the Streamlit app runs on
EXPOSE 8501
# Run the Flask app and Streamlit app using a single CMD
CMD ["streamlit", "run", "app.py"]