pytorch-sass-explorer / Dockerfile
Edward J. Schwartz
Switch pipeline to PyTorch → ONNX → IREE → PTX/SASS
cd4876b
Raw
History Blame Contribute Delete
723 Bytes
FROM nvidia/cuda:12.6.3-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && apt-get install -y --no-install-recommends \
python3 python3-pip \
&& ln -sf /usr/bin/python3 /usr/bin/python
COPY requirements.txt /tmp/requirements.txt
RUN --mount=type=cache,target=/root/.cache/pip \
pip3 install -r /tmp/requirements.txt
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:/usr/local/cuda/bin:$PATH \
PYTHONUNBUFFERED=1
WORKDIR /home/user/app
COPY --chown=user . /home/user/app
EXPOSE 7860
CMD ["python", "main.py"]