Skip to content

Commit

Permalink
Merge branch 'feat/vadc-1576' of github.com:uc-cdis/cohort-middleware…
Browse files Browse the repository at this point in the history
… into feat/vadc-1576
  • Loading branch information
tianj7 committed Dec 10, 2024
2 parents 94f73cd + 4c86337 commit 059d8a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ 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 echo "nobody:x:65534:65534:Nobody:/:" > /etc_passwd

FROM scratch
COPY --from=builder /etc_passwd /etc/passwd
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
USER nobody
CMD ["/cohort-middleware"]

0 comments on commit 059d8a8

Please sign in to comment.