From 80909937cc41c1061a7c2a2cca0580b1d8ff2348 Mon Sep 17 00:00:00 2001 From: takt Date: Fri, 28 Apr 2023 11:50:47 +0200 Subject: [PATCH] Fix Dockerfile (for real) (#142) Co-authored-by: Oliver Geiselhardt-Herms --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bb303b8..80fbd58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN apk --update --no-cache add git && \ WORKDIR ${src_dir} COPY . . -RUN go build -ldflags "${LDFLAGS}" cmd/octorpki/*.go +RUN go build -o octorpki -ldflags "${LDFLAGS}" cmd/octorpki/*.go FROM alpine:latest ARG src_dir @@ -21,7 +21,7 @@ RUN apk --update --no-cache add ca-certificates rsync && \ touch rrdp.json && chown rpki rrdp.json USER rpki -COPY --from=builder ${src_dir}/cmd/octorpki/octorpki ${src_dir}/cmd/octorpki/private.pem / +COPY --from=builder ${src_dir}/octorpki ${src_dir}/cmd/octorpki/private.pem / COPY --from=builder ${src_dir}/cmd/octorpki/tals /tals VOLUME ["/cache"]