File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,14 @@ The integration automatically detects the Go version to use by:
4242
4343### Customizing Base Images
4444
45- You can customize the base images used in the Dockerfile by using the ` DockerfileBaseImageAnnotation ` :
45+ You can customize the base images used in the Dockerfile:
4646
4747``` csharp
4848var golang = builder .AddGolangApp (" golang" , " ../gin-api" )
4949 .WithHttpEndpoint (env : " PORT" )
50- .WithAnnotation (new DockerfileBaseImageAnnotation
51- {
52- BuildImage = " golang:1.22-alpine" , // Custom build stage image
53- RuntimeImage = " alpine:3.20" // Custom runtime stage image
54- });
50+ .WithDockerfileBaseImage (
51+ buildImage : " golang:1.22-alpine" ,
52+ runtimeImage : " alpine:3.20" );
5553```
5654
5755### Generated Dockerfile
You can’t perform that action at this time.
0 commit comments