User login Creds: Username: ashish Password: Ashish@123 Url: http://134.209.158.129/
Superadmin login Username: Admin Password: Banking@123 Url: http://134.209.158.129/sadminlogin
Create Docker file of backend project
# Use the official .NET 6 SDK image as the base image
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
# Set the working directory in the container
WORKDIR /app
# Copy the project file and restore dependencies
COPY *.csproj ./
RUN dotnet restore
# Copy the rest of the source code
COPY . .
# Build the application
RUN dotnet publish -c Release -o out
# Use the official .NET 6 runtime image as the base image
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime
# Set the working directory in the container
WORKDIR /app
# Copy the output from the build image
COPY --from=build /app/out ./
# Expose the port the application will listen on
EXPOSE 80
# Set the entry point for the container
ENTRYPOINT ["dotnet", "MicroFinance.dll"]
Build Docker image out of above configuration
$ docker build -t ashish727/financebackend .
Run dockerized version of backend code
$ docker run -d -p 5000:80 ashish727/financebackend:latest
Run SQL Server in docker container
$ docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=banking@123' -p 1433:1433 --name sql_server_container -d mcr.microsoft.com/mssql/server:2022-latest