Docker Contd
Game of Life – Exercise Solution
-
Refer Here for the changes done

- Exercise: Try to create a apache based website with any html Refer Here over the Lab setup for CDN Solution section
Nop Commerce
-
Steps:
- Take a base image with dotnet 7.0
- copy the zip, unzip, create two folder bin, logs
- Start the application by using
/usr/bin/dotnet /nopCommerce/Nop.Web.dll --urls="http://0.0.0.0:5000"
- Refer Here for dotnet runtimes and Refer Here for dotnet sdk
- Dockerfile
FROM mcr.microsoft.com/dotnet/sdk:7.0
LABEL author=khaja
COPY nopCommerce /nopCommerce
ENV ASPNETCORE_URLS="http://0.0.0.0:5000"
EXPOSE 5000
WORKDIR /nopCommerce
CMD ["dotnet", "Nop.Web.dll"]
- I need to run nopCommerce as a non root user i.e.
nop
