Spaces:
Running
Running
File size: 601 Bytes
40ded67 f4c0bab 40ded67 f4c0bab 40ded67 5933eaa f4c0bab 40ded67 f4c0bab 40ded67 5933eaa 40ded67 5933eaa 40ded67 5933eaa f4c0bab 5933eaa f44e411 |
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 |
# Use an official Python runtime as a parent image
FROM python:3.12
# Set the working directory in the container
WORKDIR /app
# Copy requirements.txt into the container
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code into the container
COPY . .
# Expose the Streamlit default port
EXPOSE 8501
# Set environment variables to avoid Streamlit UI prompts
ENV STREAMLIT_SERVER_PORT=8501 \
STREAMLIT_SERVER_ADDRESS=0.0.0.0 \
PYTHONUNBUFFERED=1
# Command to run the Streamlit app
CMD ["streamlit", "run", "app.py"]
|