text-summarizer / Dockerfile
janrudolf's picture
Docker doesnt need to copy model dir
c3d7567
raw
history blame contribute delete
474 Bytes
FROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-runtime
WORKDIR /app
# Install dependencies
COPY requirements-base.txt requirements-cuda.txt ./
RUN pip install --no-cache-dir --timeout 300 -r requirements-cuda.txt
# App code and assets
COPY api.py frontend.py run_app_wo_docker.sh ./
COPY img/ ./img/
RUN chmod +x run_app_wo_docker.sh
# Hugging Face Spaces port 7860
EXPOSE 7860
# Backend (FastAPI) runs on 8000; frontend (Streamlit) on 7860
CMD ["./run_app_wo_docker.sh"]