Correctly add CA certificates (#2542)

## Description

This ensures that the CA certificates are not from some random version of Alpine but from the version we are using as a base image.

## Does this PR need a docs update or release note?

- [x]  No 

## Type of change

- [x] 🐛 Bugfix
- [x] 🧹 Tech Debt/Cleanup

## Issue(s)

* #2529 

## Test Plan

- [x] 💪 Manual
This commit is contained in:
Niraj Tolia 2023-02-15 23:40:00 -08:00 committed by GitHub
parent 727416c6b0
commit ffcc248398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,8 +16,7 @@ LABEL org.opencontainers.image.vendor="Alcion, Inc."
COPY --from=builder /go/src/app/corso /corso COPY --from=builder /go/src/app/corso /corso
# Pull tls certs directly from latest upstream image RUN apk add --no-cache ca-certificates
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENV CORSO_HOME=/app/corso ENV CORSO_HOME=/app/corso
ENV CORSO_CONFIG_DIR=$CORSO_HOME \ ENV CORSO_CONFIG_DIR=$CORSO_HOME \