deepseek-lab / Dockerfile
andres.salguero
update docekrfile
ecef918
raw
history blame contribute delete
573 Bytes
FROM python:3.9-slim
WORKDIR /app
# Set a writable home directory for the app user
ENV HOME="/tmp"
# Set a writable cache directory for Hugging Face (the new standard)
ENV HF_HOME="/tmp/huggingface_cache"
# Install build tools needed for compiling python packages from source
RUN apt-get update && apt-get install -y build-essential
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY . .
EXPOSE 7860
CMD sh -c 'rm -rf /tmp/huggingface_cache/* && streamlit run app.py --server.port=${PORT:-7860} --server.address=0.0.0.0'