Skip to content

Commit ae4f787

Browse files
authored
correct paths to libonyx install (#226)
1 parent 0f5c174 commit ae4f787

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

ahnlich/Dockerfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,24 @@ ARG DEFAULT_PORT
3434
WORKDIR /app
3535

3636
RUN apt-get update && apt-get install -y --no-install-recommends openssl ca-certificates \
37-
libsasl2-modules-gssapi-mit libsasl2-dev curl \
38-
# Clean up
39-
&& apt-get autoremove -y \
40-
&& apt-get clean -y \
41-
&& rm -rf /var/lib/apt/lists/*
37+
libsasl2-modules-gssapi-mit libsasl2-dev curl \
38+
# Clean up
39+
&& apt-get autoremove -y \
40+
&& apt-get clean -y \
41+
&& rm -rf /var/lib/apt/lists/*
4242

4343

4444
# ✅ Conditionally install onnxruntime from github if AHNLICH_BIN=ahnlich-ai
4545
RUN if [ "$AHNLICH_BIN" = "ahnlich-ai" ]; then \
46-
ORT_VER=1.21.0 && \
47-
curl -L -o /tmp/ort.tgz \
48-
https://github.com/microsoft/onnxruntime/releases/download/v${ORT_VER}/onnxruntime-linux-x64-gpu-${ORT_VER}.tgz && \
49-
mkdir -p /opt/onnxruntime && \
50-
tar -xzf /tmp/ort.tgz -C /opt/onnxruntime && \
51-
cp /opt/onnxruntime/onnxruntime-linux-x64-gpu-${ORT_VER}/lib/libonnxruntime.so.${ORT_VER} /usr/local/lib/ && \
52-
ln -s /usr/local/lib/libonnxruntime.so.${ORT_VER} /usr/local/lib/libonnxruntime.so && \
53-
rm -rf /tmp/ort.tgz; \
54-
fi
46+
ORT_VER=1.19.0 && \
47+
curl -L -o /tmp/ort.tgz \
48+
https://github.com/microsoft/onnxruntime/releases/download/v${ORT_VER}/onnxruntime-linux-x64-gpu-${ORT_VER}.tgz && \
49+
mkdir -p /opt/onnxruntime && \
50+
tar -xzf /tmp/ort.tgz -C /opt/onnxruntime && \
51+
cp /opt/onnxruntime/onnxruntime-linux-x64-gpu-${ORT_VER}/lib/libonnxruntime.so.${ORT_VER} /lib/ && \
52+
ln -s /lib/libonnxruntime.so.${ORT_VER} /lib/libonnxruntime.so && \
53+
rm -rf /tmp/ort.tgz; \
54+
fi
5555

5656
COPY --from=builder /app/target/release/${AHNLICH_BIN} /usr/local/bin/
5757
COPY --from=builder /app/target/release/ahnlich-cli /usr/local/bin/

0 commit comments

Comments
 (0)