Create the certs if missing and run instead
Docker Build and Release Upload / build (push) Successful in 1m22s
Docker Build and Release Upload / build (push) Successful in 1m22s
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copy certs-gen.sh into the mounted /certs volume if it doesn't exist
|
||||
if [ ! -f /certs/cert-gen.sh ]; then
|
||||
cp /cert-gen.sh /certs/cert-gen.sh
|
||||
chmod +x /certs/cert-gen.sh
|
||||
if [ ! -f /certs/private_key.pem ]; then
|
||||
echo "Generating RSA key pair..."
|
||||
openssl genrsa -out /certs/private_key.pem 2048
|
||||
openssl rsa -in /certs/private_key.pem -pubout -out public_key.pem
|
||||
fi
|
||||
|
||||
# Launch the application
|
||||
|
||||
Reference in New Issue
Block a user