diff --git a/Dockerfile b/Dockerfile index 6a3d2d6..5348ec5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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