github.com/spotahome/redis-operator@v1.2.4/docker/app/Dockerfile (about)

     1  FROM --platform=$BUILDPLATFORM golang:1.19-alpine AS build
     2  RUN apk --no-cache add \
     3    bash
     4  
     5  WORKDIR /src
     6  COPY . .
     7  
     8  ARG TARGETOS 
     9  ARG TARGETARCH 
    10  ARG VERSION
    11  RUN GOOS=$TARGETOS GOARCH=$TARGETARCH VERSION=$VERSION ./scripts/build.sh
    12  
    13  FROM alpine:latest
    14  RUN apk --no-cache add \
    15    ca-certificates
    16  COPY --from=build /src/bin/redis-operator /usr/local/bin
    17  RUN addgroup -g 1000 rf && \
    18    adduser -D -u 1000 -G rf rf && \
    19    chown rf:rf /usr/local/bin/redis-operator
    20  USER rf
    21  
    22  ENTRYPOINT ["/usr/local/bin/redis-operator"]