Skip to content

Commit

Permalink
Feature/xpe 1107 add dockerfile (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalet authored Apr 27, 2023
1 parent d795c69 commit 003bd61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ MAINTAINER Ripple Operations <[email protected]>
RUN apk add --no-cache openssl ca-certificates

# Generate self-signed wildcard certificate
RUN openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \
RUN /bin/sh -c 'mkdir -p /app/ssl && cd /app/ssl && \
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \
-keyout faucet.com.key -out faucet.com.crt \
-subj "/CN=*.ripplesandbox.com/O=RippleLabs/OU=RippleX/L=San Francisco/ST=CA/C=US"
-subj "/CN=*.ripplesandbox.com/O=RippleLabs/OU=RippleX/L=San Francisco/ST=CA/C=US"'

# Copy the certificate and key into the container
COPY faucet.com.crt /etc/ssl/certs/
COPY faucet.com.key /etc/ssl/private/
RUN /bin/sh -c "cp /app/ssl/faucet.com.crt /etc/ssl/certs/"
RUN /bin/sh -c "cp /app/ssl/faucet.com.key /etc/ssl/"

# Set environment variables for the SSL/TLS configuration
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/faucet.com.crt
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/private/faucet.com.key

# Update the CA certificate bundle
RUN update-ca-certificates
Expand Down

0 comments on commit 003bd61

Please sign in to comment.