Skip to content

Commit

Permalink
feat: include data-generator build in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlukasse committed Oct 3, 2024
1 parent 664f88d commit 8349fc3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ RUN GITCOMMIT=$(git rev-parse HEAD) \
-ldflags="-X 'github.com/uc-cdis/cohort-middleware/version.GitCommit=${GITCOMMIT}' -X 'github.com/uc-cdis/cohort-middleware/version.GitVersion=${GITVERSION}'" \
-o /cohort-middleware

RUN GITCOMMIT=$(git rev-parse HEAD) \
GITVERSION=$(git describe --always --tags) \
&& go build -C tests/data_generator \
-o /data-generator

FROM scratch
COPY --from=builder /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /cohort-middleware /cohort-middleware
COPY --from=builder /data-generator /data-generator

CMD ["/cohort-middleware"]

0 comments on commit 8349fc3

Please sign in to comment.