Codingo / Dockerfile
husseinelsaadi's picture
Enable GPU with Docker
329b59a
raw
history blame
350 Bytes
FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-runtime
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
git ffmpeg libsndfile1 python3-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY . /app
WORKDIR /app
CMD ["python3", "app.py"]