update readme
This commit is contained in:
		
							
								
								
									
										24
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								README.md
									
									
									
									
									
								
							| @@ -25,6 +25,30 @@ Among other things these tweaks are included : | ||||
| | DOTNET_CLI_TELEMETRY_OPTOUT                         | Disables telemetry                                                      | 1                                                                                            | | ||||
| | TZ                                                  | Time zone ([list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)) | Europe/Brussels |                                                                               | | ||||
|  | ||||
| ### Usage | ||||
|  | ||||
| Since this is just a base image, some additional setup is needed. | ||||
| The following is just an example of how your Dockerfile could look like. | ||||
|  | ||||
| `` | ||||
| # Password for the certificate | ||||
| # this image contains the entire .NET SDK and is ideal for creation the build | ||||
| FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine-amd64 AS build-env | ||||
| WORKDIR /App | ||||
| COPY . ./ | ||||
| # Restore dependencies for your application | ||||
| RUN dotnet restore | ||||
| # Build your application | ||||
| RUN dotnet publish test.csproj --no-restore --self-contained false -c Release -o out /p:UseAppHost=false  | ||||
|  | ||||
| FROM git.claeyscloud.com/david/net-base:latest | ||||
| WORKDIR /App | ||||
| # copy build files from build-stage | ||||
| COPY --from=build-env /App/out . | ||||
| # entrypoint for image | ||||
| ENTRYPOINT ["dotnet", "test.dll"] | ||||
| `` | ||||
|  | ||||
| ### Security implications | ||||
|  | ||||
| This images uses the system provided by Microsoft to generate a development certificate and uses the [Kestrel](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/?view=aspnetcore-9.0&tabs=windows) webserver. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user