update dockerfile certificate permissions
All checks were successful
Build docker container / build (release) Successful in 49s

This commit is contained in:
David Claeys 2025-04-01 14:14:02 +02:00
parent a6391605f2
commit 0ecc019dc0

View File

@ -42,9 +42,11 @@ RUN CERT_PASSWORD=$(cat $CERT_PASSWORD_FILE) \
&& rm -rf $CONFIG_DIRECTORY \
&& chmod 755 $ASPNETCORE_Kestrel__Certificates__Default__Path \
&& chmod +x $ASPNETCORE_Kestrel__Certificates__Default__Path \
&& chown app:app $ASPNETCORE_Kestrel__Certificates__Default__Path \
&& cat $ASPNETCORE_Kestrel__Certificates__Default__Path >> /etc/ssl/certs/ca-certificates.crt \
&& chmod 755 $ASPNETCORE_Kestrel__Certificates__Default__KeyPath \
&& chmod +x $ASPNETCORE_Kestrel__Certificates__Default__KeyPath \
&& chown app:app $ASPNETCORE_Kestrel__Certificates__Default__KeyPath \
&& update-ca-certificates
ENV ASPNETCORE_Kestrel__Certificates__Default__Password=$CERT_PASSWORD