Skip to content

Commit

Permalink
Update Dockerfile to change project directory and binary name (#17)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rolandgroen authored Nov 19, 2024
1 parent d9d53dc commit e4536b5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]


0 comments on commit e4536b5

Please sign in to comment.