Manipulate entrypoint; Generate certificate on first boot

This commit is contained in:
Christopher Puschmann 2018-12-06 22:37:34 +01:00
parent b75828e81d
commit 54dbf2d66c
No known key found for this signature in database
GPG Key ID: 2AE611A0B7F633BB
1 changed files with 1 additions and 1 deletions

View File

@ -10,4 +10,4 @@ RUN apk add --no-cache qt5-qtbase qt5-qtbase-dev qt5-qtbase-postgresql qt5-qtscr
rm -rf /quassel-git && \
apk del qt5-qtbase-dev qt5-qtscript-dev make cmake g++ git boost-dev zlib-dev
ENTRYPOINT quasselcore -c /config -p 4242 --require-ssl
ENTRYPOINT /bin/sh -c 'if [ ! -f /config/quasselCert.pem ]; then mkdir -p /config && openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout /config/quasselCert.pem -out /config/quasselCert.pem -subj /CN=Quasselcore; fi && quasselcore -c /config -p 4242 --require-ssl'