Spaces:
Runtime error
Runtime error
File size: 687 Bytes
3191ad4 65c1263 3191ad4 65c1263 3191ad4 |
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 |
# 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 8501
# Expose the port the Streamlit app runs on
EXPOSE 7860
# Run the Flask app and Streamlit app using a single CMD
CMD ["streamlit", "run", "app.py"]
|