DevOps Classroomnotes 29/Aug/2023

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
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency
Exit mobile version
%%footer%%