github.com/thanos-io/thanos@v0.32.5/Dockerfile.multi-arch (about)

     1  # By default we pin to amd64 sha. Use make docker to automatically adjust for arm64 versions.
     2  ARG BASE_DOCKER_SHA="97a9aacc097e5dbdec33b0d671adea0785e76d26ff2b979ee28570baf6a9155d"
     3  
     4  FROM quay.io/prometheus/busybox@sha256:${BASE_DOCKER_SHA}
     5  LABEL maintainer="The Thanos Authors"
     6  
     7  ARG ARCH="amd64"
     8  ARG OS="linux"
     9  
    10  COPY .build/${OS}-${ARCH}/thanos /bin/thanos
    11  
    12  RUN adduser \
    13      -D `#Dont assign a password` \
    14      -H `#Dont create home directory` \
    15      -u 1001 `#User id`\
    16      thanos && \
    17      chown thanos /bin/thanos
    18  USER 1001
    19  ENTRYPOINT [ "/bin/thanos" ]