@@ -34,24 +34,24 @@ ARG DEFAULT_PORT
34
34
WORKDIR /app
35
35
36
36
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/*
42
42
43
43
44
44
# ✅ Conditionally install onnxruntime from github if AHNLICH_BIN=ahnlich-ai
45
45
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
55
55
56
56
COPY --from=builder /app/target/release/${AHNLICH_BIN} /usr/local/bin/
57
57
COPY --from=builder /app/target/release/ahnlich-cli /usr/local/bin/
0 commit comments