FROM golang:1.23.4@sha256:574185e5c6b9d09873f455a7c205ea0514bfd99738c5dc7750196403a44ed4b7
WORKDIR /app
COPY . .
ARG BINARY_NAME
ENV BINARY_NAME=$BINARY_NAME
RUN go build -o $BINARY_NAME
ENTRYPOINT ["sh", "-c", "/app/$BINARY_NAME"]
