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 b51248d798..937d206a08 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", "portsAttributes": { "5000": { "label": "SMTP4Dev",