Skip to content

Commit

Permalink
feat: add root certificate to store
Browse files Browse the repository at this point in the history
  • Loading branch information
bigpaulie committed May 15, 2024
1 parent c1ca144 commit 3326be6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions demo-nodejs-emqx/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FROM node:18-alpine

COPY ./cert/HyfyRoot.crt /usr/local/share/ca-certificates/HyfyRoot.crt
RUN cat /usr/local/share/ca-certificates/HyfyRoot.crt >> /etc/ssl/certs/ca-certificates.crt
COPY ./cert/HyfyRoot.crt /usr/local/share/ca-certificates/

# Update the certificate store
RUN apk update && \
apk add --no-cache ca-certificates && \
update-ca-certificates

WORKDIR /app

Expand Down

0 comments on commit 3326be6

Please sign in to comment.