Files
auth-mistox/docker-entrypoint.sh
T
derek 1cfad5afa4
Docker Build and Release Upload / build (push) Successful in 1m22s
Create the certs if missing and run instead
2025-07-26 12:21:44 -07:00

11 lines
356 B
Bash

#!/bin/sh
# Copy certs-gen.sh into the mounted /certs volume if it doesn't exist
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
exec dotnet Server.dll --urls http://+:5000