Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
emalinowski authored Nov 4, 2024
1 parent e4b59f8 commit f5197a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +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
USER nobody
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 f5197a6

Please sign in to comment.