Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
add ${TARGETARCH}


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


The following ARG variables are set automatically:

    TARGETPLATFORM - platform of the build result. Eg linux/amd64, linux/arm/v7, windows/amd64.
    TARGETOS - OS component of TARGETPLATFORM
    TARGETARCH - architecture component of TARGETPLATFORM
    TARGETVARIANT - variant component of TARGETPLATFORM
    BUILDPLATFORM - platform of the node performing the build.
    BUILDOS - OS component of BUILDPLATFORM
    BUILDARCH - architecture component of BUILDPLATFORM
    BUILDVARIANT - variant component of BUILDPLATFORM
  • Loading branch information
eric-epsilla authored Oct 18, 2023
1 parent 1ddc8e7 commit 553f9f5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions engine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ RUN mkdir -p /vectordb/build && cd /vectordb/build && cmake .. && make -j $(npro


FROM ubuntu:22.04
ARG TARGETARCH
RUN apt-get update && \
apt-get install -y --no-install-recommends curl wget net-tools iproute2 supervisor libgomp1 libboost-all-dev s3fs fuse ca-certificates

apt-get install -y --no-install-recommends curl wget net-tools iproute2 supervisor libgomp1 libboost-all-dev s3fs fuse ca-certificates && \
wget --no-check-certificate https://github.com/yandex-cloud/geesefs/releases/latest/download/geesefs-linux-${TARGETARCH} && \
chmod +x geesefs-linux-${TARGETARCH} && \
mv geesefs-linux-${TARGETARCH} /usr/local/bin/geesefs && \
geesefs --version
COPY --from=builder /vectordb/build/vectordb /vectordb
COPY ./scripts/heartbeat.sh /heartbeat.sh
HEALTHCHECK --interval=600s --timeout=30s --retries=1000 CMD bash /heartbeat.sh || exit 0
Expand Down

0 comments on commit 553f9f5

Please sign in to comment.