diff --git a/Source/Dockerfile b/Source/Dockerfile index 1a8f35a..73aeb11 100644 --- a/Source/Dockerfile +++ b/Source/Dockerfile @@ -13,6 +13,8 @@ WORKDIR /src COPY . ./ +RUN dotnet dev-certs https + FROM build AS publish COPY ./Directory.Packages.props /app/Directory.Packages.props COPY ./Directory.Build.props /app/Directory.Build.props @@ -56,4 +58,4 @@ RUN chown -R appuser:appgroup /tmp USER appuser:appgroup ENV ASPNETCORE_URLS=https://+:9001 -ENTRYPOINT ["/usr/bin/supervisord", "-c", "/app/supervisord.conf", "-u", "1000"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/supervisord", "-c", "/app/supervisord.conf", "-u", "1000"] diff --git a/Source/Dockerfile.e2e-tests b/Source/Dockerfile.e2e-tests index c5f60b2..fb82b9d 100644 --- a/Source/Dockerfile.e2e-tests +++ b/Source/Dockerfile.e2e-tests @@ -15,7 +15,7 @@ ENV ASPNETCORE_ENVIRONMENT=Release COPY . ./ # Install developer certificate -RUN dotnet dev-certs https +RUN dotnet dev-certs https # Build tests WORKDIR /src/CDR.DataRecipient.E2ETests diff --git a/Source/Dockerfile.integration-tests b/Source/Dockerfile.integration-tests index 6ca1d81..e89143e 100644 --- a/Source/Dockerfile.integration-tests +++ b/Source/Dockerfile.integration-tests @@ -10,7 +10,7 @@ ENV ASPNETCORE_ENVIRONMENT=Release COPY . ./ # Install developer certificate -RUN dotnet dev-certs https +RUN dotnet dev-certs https # Install ca certificate RUN apt-get update && apt-get install -y sudo diff --git a/Source/Dockerfile.mdr.integration-tests b/Source/Dockerfile.mdr.integration-tests index 3964bb5..b3d4338 100644 --- a/Source/Dockerfile.mdr.integration-tests +++ b/Source/Dockerfile.mdr.integration-tests @@ -10,6 +10,8 @@ WORKDIR /src COPY . ./ +dotnet dev-certs https + FROM build AS publish COPY ./Directory.Packages.props /app/Directory.Packages.props COPY ./Directory.Build.props /app/Directory.Build.props @@ -39,4 +41,4 @@ RUN sudo cp ./web/Certificates/ca.crt /usr/local/share/ca-certificates/ca.crt RUN sudo update-ca-certificates ENV ASPNETCORE_URLS=https://+:9001 -ENTRYPOINT ["/usr/bin/supervisord", "-c", "/app/supervisord.conf"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/supervisord", "-c", "/app/supervisord.conf"] diff --git a/Source/Dockerfile.unit-tests b/Source/Dockerfile.unit-tests index 073e86a..fde7a89 100644 --- a/Source/Dockerfile.unit-tests +++ b/Source/Dockerfile.unit-tests @@ -9,6 +9,8 @@ ENV ASPNETCORE_ENVIRONMENT=Release # Copy source COPY . ./ +dotnet dev-certs https + # Install ca certificate RUN apt-get update && apt-get install -y sudo RUN sudo cp ./CDR.DataRecipient.Web/Certificates/ca.crt /usr/local/share/ca-certificates/ca.crt