netfm-training / Dockerfile
henribonamy's picture
Upload Dockerfile with huggingface_hub
57803ca verified
raw
history blame contribute delete
583 Bytes
FROM pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.5.0+cu124.html
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY netfm/ ./netfm/
COPY app.py .
RUN mkdir -p /app/data /app/checkpoints /app/results && chmod -R 777 /app/data /app/checkpoints /app/results /app
ENV HF_REPO=GitHunter/netfm-checkpoints
EXPOSE 7860
CMD ["python", "app.py"]