stackage/Dockerfile
Andreas Ländle 87e76e946d
Some checks failed
check / Stackage check (push) Has been cancelled
image / push (push) Has been cancelled
Next try for libtorch-ffi dependencies (#8039).
2026-06-13 22:51:25 +02:00

25 lines
821 B
Docker

FROM ubuntu:24.04
ENV HOME /home/stackage
ENV LANG en_US.UTF-8
COPY docker/01-build-server.sh /tmp/01-build-server.sh
RUN /tmp/01-build-server.sh && rm /tmp/01-build-server.sh
COPY docker/02-apt-get-install.sh /tmp/02-apt-get-install.sh
RUN /tmp/02-apt-get-install.sh && rm /tmp/02-apt-get-install.sh
ENV LIBTORCH_VERSION 2.5.0
ENV LIBTORCH_HOME /usr/local/libtorch
ENV LIBTORCH_CUDA_VERSION cpu
ENV LIBTORCH_SKIP_DOWNLOAD 1
COPY docker/03-custom-install.sh /tmp/03-custom-install.sh
RUN /tmp/03-custom-install.sh && rm /tmp/03-custom-install.sh
COPY docker/04-cleanup.sh /tmp/04-cleanup.sh
RUN /tmp/04-cleanup.sh && rm /tmp/04-cleanup.sh
# Include file path
ENV CPATH /usr/lib/jvm/java-8-openjdk-amd64/include:/usr/lib/jvm/java-8-openjdk-amd64/include/linux:/usr/lib/llvm-3.7/include:/usr/local/libtorch/include