From e4536b5c5ad06b9ab0ccbfe2b506c6e5face410f Mon Sep 17 00:00:00 2001 From: Roland Groen Date: Tue, 19 Nov 2024 10:15:01 +0100 Subject: [PATCH] Update Dockerfile to change project directory and binary name (#17) Renamed the project directory from "pki-overheid-issuer" to "uzi-servercertificaat-issuer" and updated the binary output path accordingly. Adjusted the user and entrypoint to reflect the new binary name. This change aims to better align the naming convention with the project scope. --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 269ee96..44f6f9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,13 +19,13 @@ RUN apk update \ ENV GO111MODULE=on ENV GOPATH=/ -RUN mkdir /opt/pki-overheid-issuer && cd /opt/pki-overheid-issuer +RUN mkdir /opt/uzi-servercertificaat-issuer && cd /opt/uzi-servercertificaat-issuer COPY go.mod . COPY go.sum . RUN go mod download && go mod verify COPY . . -RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags="-w -s " -o /opt/pki-overheid-issuer/pki-overheid-issuer +RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags="-w -s " -o /opt/uzi-servercertificaat-issuer/issuer # alpine FROM alpine:3.20.3 @@ -34,12 +34,11 @@ RUN apk update \ tzdata \ curl \ && update-ca-certificates -COPY --from=builder /opt/pki-overheid-issuer/pki-overheid-issuer /usr/bin/pki-overheid-issuer +COPY --from=builder /opt/uzi-servercertificaat-issuer/issuer /usr/bin/issuer -RUN adduser -D -H -u 18081 pki-overheid-issuer-usr +RUN adduser -D -H -u 18081 issuer-usr USER 18081:18081 -WORKDIR /pki-overheid-issuer -ENTRYPOINT ["/usr/bin/pki-overheid-issuer"] +ENTRYPOINT ["/usr/bin/issuer"] CMD ["--help"]