DevOps Classroomnotes 22/Jun/2022

Docker Contd…

Activity

  • Refer Here for installation and configuration of an ecommerce application called as nopcommerce
  • This application is developed in .net and the backend database can be mysql
  • Try to create a Dockerfile for nopCommerce
  • Try to use https://hub.docker.com/_/microsoft-dotnet-aspnet/ as a base image
  • Expose port 80
  • Add and unzip the file nop commerce
FROM mcr.microsoft.com/dotnet/aspnet:6.0
ADD wget https://github.com/nopSolutions/nopCommerce/releases/download/release-4.50.3/nopCommerce_4.50.3_NoSource_linux_x64.zip /Nop/nopCommerce_4.50.3_NoSource_linux_x64.zip
RUN apt update && apt install unzip -y && mkdir /Nop/bin && mkdir /Nop/logs
WORKDIR /Nop
EXPOSE 80
CMD ["/usr/bin/dotnet", "/Nop/Nop.Web.dll"] 

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube