fe.ut.aiml.hf.space / Dockerfile
aibtus's picture
Update Dockerfile
fbcb93f verified
raw
history blame contribute delete
721 Bytes
# Use a stable, widely supported Python version (3.11 is highly recommended)
FROM python:3.11
# Set the working directory
WORKDIR /app
# Install necessary system packages for building Python packages (like pandas)
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy the dependency file
COPY requirements.txt ./
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code (assuming your app is in the root)
# If your app is in 'src/', change this to COPY src/ ./src/
COPY streamlit_app.py ./
# Define the command to run the Streamlit application
CMD ["streamlit", "run", "streamlit_app.py"]