Skip to content

Commit

Permalink
fix: Resolve issue #623 - Linux arm64/v8 support in Dockerfile (#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonharrison authored Dec 11, 2023
1 parent 0784fa6 commit ca80413
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,17 @@ RUN apt-get update && \
# Context: https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9
RUN git config --system --add safe.directory "*"

# Automatic platform ARGs in the global scope
# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
ARG TARGETARCH

# AMD64 only:
# Make link to libnvidia-ml.so (NVML) library
# so that we could get GPU stats.
RUN ln -s /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 \
/usr/lib/x86_64-linux-gnu/libnvidia-ml.so
RUN if [ "$TARGETARCH" = "amd64" ]; then \
ln -s /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 \
/usr/lib/x86_64-linux-gnu/libnvidia-ml.so; \
fi

COPY --from=build /opt/tabby /opt/tabby

Expand Down

0 comments on commit ca80413

Please sign in to comment.