File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,10 +11,8 @@ COPY . .
1111WORKDIR "/src/FileProcessor"
1212RUN dotnet build "FileProcessor.csproj" -c Release -o /app/build
1313
14- # Sort out certificate stuff here
15- RUN openssl x509 -inform DER -in /src/FileProcessor/aspnetapp-root-cert.cer -out /src/FileProcessor/aspnetapp-root-cert.crt
16- RUN cp /src/FileProcessor/aspnetapp-root-cert.crt /usr/local/share/ca-certificates/
17- RUN update-ca-certificates
14+ WORKDIR "/src"
15+ RUN %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command Import-PfxCertificate -FilePath "Certificates/aspnetapp-root-cert.pfx" -Password (ConvertTo-SecureString -String 'password' -AsPlainText -Force) -CertStoreLocation Cert:\LocalMachine\Root
1816
1917FROM build AS publish
2018RUN dotnet publish "FileProcessor.csproj" -c Release -o /app/publish
@@ -26,4 +24,4 @@ RUN mkdir -p /home/txnproc/bulkfiles
2624FROM mkdir AS final
2725WORKDIR /app
2826COPY --from=publish /app/publish .
29- ENTRYPOINT ["dotnet", "FileProcessor.dll"]
27+ ENTRYPOINT ["dotnet", "FileProcessor.dll"]
You can’t perform that action at this time.
0 commit comments