Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Fix Dockerfile (for real) (#142)
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Geiselhardt-Herms <ogeiselhardt-herms@cloudflare.com>
  • Loading branch information
takt and Oliver Geiselhardt-Herms committed Apr 28, 2023
1 parent 3a12872 commit 8090993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -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
Expand All @@ -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"]
Expand Down

0 comments on commit 8090993

Please sign in to comment.