GVHD_Prediction / Dockerfile
mridzuan's picture
rm software-properties-common from apt-get install
4a61255
FROM python:3.9-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Create user and huggingface cache directory
RUN useradd -ms /bin/bash user \
&& mkdir -p /home/user/huggingface \
&& chown -R user:user /home/user/huggingface
ENV PYTHONUNBUFFERED=1 \
PORT=8000 \
HF_HOME=/home/user/huggingface
COPY requirements.txt ./
COPY src/ ./src/
RUN pip3 install -r requirements.txt
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
USER user
ENTRYPOINT ["streamlit", "run", "src/GVHD_Predictions_App.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]