olgram/docker-entrypoint.sh

13 lines
303 B
Bash
Raw Normal View History

2021-07-11 12:53:33 +03:00
#!/bin/sh
set -e
2021-09-15 22:53:18 +03:00
if [[ -z "${CUSTOM_CERT}" ]]; then
if [ ! -f /cert/private.key ]; then
openssl req -newkey rsa:2048 -sha256 -nodes -keyout /cert/private.key -x509 -days 1000 -out /cert/public.pem -subj "/C=US/ST=Berlin/L=Berlin/O=my_org/CN=my_cn"
fi
fi
2021-09-10 00:01:30 +03:00
sleep 10
2021-07-11 12:53:33 +03:00
aerich upgrade
2021-09-15 22:53:18 +03:00
python main.py