Spaces:
Runtime error
Runtime error
File size: 541 Bytes
3b1993a d01897f 462d94f d01897f 462d94f d01897f 462d94f d01897f 462d94f 3b1993a 462d94f 3b1993a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Use the official Streamlit image as a base or a Python image with Streamlit installed
# For simplicity, we'll stick to python:3.9-slim and install Streamlit.
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY app.py .
# Expose the port Streamlit runs on
EXPOSE 8501
# Command to run the Streamlit application
CMD ["streamlit", "run", "app.py"]
|