FROM --platform=${TARGETPLATFORM} golang:latest as builder ARG REPOSITORY=IrineSistiana/simple-tls ARG CGO_ENABLED=0 WORKDIR /root RUN git clone https://github.com/${REPOSITORY} simple-tls \ && cd ./simple-tls \ && git fetch --all --tags \ && go build -ldflags "-s -w -X main.version=$(git describe --tags --long --always)" -trimpath -o simple-tls FROM --platform=${TARGETPLATFORM} alpine:latest LABEL maintainer="IrineSistiana " COPY --from=builder /root/simple-tls/simple-tls /usr/bin/ RUN apk add --no-cache ca-certificates