BioMedVisionLab / Dockerfile
Mahrufa's picture
Add Docker deployment for Hugging Face Spaces
ae229c1
Raw History Blame Contribute Delete
416 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
git \
wget \
curl \
build-essential \
libglib2.0-0 \
libgl1 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]