So, I have a docker container ready for building, but, when I build it, I need to go manualy and start mongod from within docker container. What am I doing wrong? I start the mongod from the Dockerfile, but it looks like that something is killing the process or that the process is never even being executed?
FROM microsoft/iis:10.0.14393.206
SHELL ["powershell"]
RUN Install-WindowsFeature NET-Framework-45-ASPNET ; \
Install-WindowsFeature Web-Asp-Net45
COPY Pub Pub
RUN mkdir data\db
COPY mongodb_installer.msi mongodb_installer.msi
RUN Start-Process -FilePath 'mongodb_installer.msi' -ArgumentList '/quiet', '/NoRestart' -Wait ; \
Remove-Item .\mongodb_installer.msi
RUN 'C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe'
RUN Remove-WebSite -Name 'Default Web Site'
RUN New-Website -Name 'Pub' -Port 80 \
-PhysicalPath 'C:\Pub' -ApplicationPool '.NET v4.5'
EXPOSE 80
CMD ["ping", "-t", "localhost"]
When I start mongod from withing container, my web api application is working perfectly, need to know how to set mongod running from start?