Skip to content

Commit 20955ac

Browse files
Update Dockerfilewindows
1 parent 79364be commit 20955ac

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

FileProcessor/Dockerfilewindows

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ COPY . .
1111
WORKDIR "/src/FileProcessor"
1212
RUN 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

1917
FROM build AS publish
2018
RUN dotnet publish "FileProcessor.csproj" -c Release -o /app/publish
@@ -26,4 +24,4 @@ RUN mkdir -p /home/txnproc/bulkfiles
2624
FROM mkdir AS final
2725
WORKDIR /app
2826
COPY --from=publish /app/publish .
29-
ENTRYPOINT ["dotnet", "FileProcessor.dll"]
27+
ENTRYPOINT ["dotnet", "FileProcessor.dll"]

0 commit comments

Comments
 (0)