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"]
