Closed Antonytm closed 2 years ago
Are there any dependencies that are probably missed in the container?
Looking at pngquant.exe for 2.17, it looks like you might need a Microsoft Visual C++ Redistributable to run it.
I don't know if the container has such, but a quick google gave this page.
The screenshot you have shows pngquant 2.12, so I don't know if you might need a different version for that.
@jibsen Thank you!
The image that I used doesn't have Microsoft Visual C++ Redistributable.
I have added these lines to my dockerbuild
file:
RUN Powershell Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
RUN choco install vcredist-all -y
(it install this choco package: https://community.chocolatey.org/packages/vcredist-all) and it started to work!
Do you know what exact version of Microsoft Visual C++ Runtime is required? recommended? enough to have? (to avoid installation of all version to my image)
Glad to hear that worked!
Try this one: https://community.chocolatey.org/packages/vcredist140
Yes, it also works.
I think the issue could be closed, but better to document it.
I have an ASP.NET MVC website, which is hosted in a Docker container based on Windows Server Core image, 1809-amd64 tag.
I want to run
pngquant
inside this container in order to optimizepng
images.I got an exception:
I try to troubleshoot the issue.
pngquant.exe
using shell (at least to see help)Expected result: I should see help information (example from the website hosted locally, not in the container)
Actual result: The command exits silently.