Skip to content

Commit

Permalink
Add ca-certificates to access remote DBs such as MongoDB Atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerwins committed Apr 9, 2021
1 parent 317320b commit 6d3e176
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@ COPY . .
# Build the yorkie
RUN make build

# Stage 2: copy binary
# Stage 2: get ca-certificates
FROM alpine:3 as certs
RUN apk --no-cache add ca-certificates

# Stage 3: copy ca-certificates and binary
FROM debian:buster-slim

# Get and place ca-certificates to /etc/ssl/certs
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

# Get and place binary to /bin
COPY --from=builder /app/bin/yorkie /bin/

Expand Down

0 comments on commit 6d3e176

Please sign in to comment.