From 1d78a0650993931db044455a277e7ff80a2674b5 Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Tue, 15 Nov 2022 10:14:29 +0000 Subject: [PATCH] The devcert in the docker was not working so moved to updateContentCommand --- .devcontainer/Dockerfile | 4 ---- .devcontainer/devcontainer.json | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a6303468cc..7ab6093623 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -22,7 +22,3 @@ RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/ # https://docs.npmjs.com/cli/v6/using-npm/config#unsafe-perm # Default: false if running as root, true otherwise (we are ROOT) #RUN npm -g config set user vscode && npm -g config set unsafe-perm - -# Generate and trust a local developer certificate for Kestrel -# This is needed for Kestrel to bind on https -RUN dotnet dev-certs https --trust diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2040a05912..6e63138669 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -36,7 +36,7 @@ // This is used in the prebuilds - so dotnet build (nuget restore and node stuff) is done - "updateContentCommand": "dotnet build umbraco.sln", + "updateContentCommand": "dotnet build umbraco.sln && dotnet dev-certs https --trust", // [Optional] To reuse of your local HTTPS dev cert: //