File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ _ = new ContainerBuilder()
4545
4646``` csharp title="Copying a file"
4747_ = new ContainerBuilder ()
48- # Copy 'appsettings.json' into the '/app' directory.
48+ // Copy 'appsettings.json' into the '/app' directory.
4949 .WithResourceMapping (new FileInfo (" appsettings.json" ), " /app/" )
50- # Copy 'appsettings.Container.json' to '/app/appsettings.Developer.json'.
50+ // Copy 'appsettings.Container.json' to '/app/appsettings.Developer.json'.
5151 .WithResourceMapping (new FileInfo (" appsettings.Container.json" ), new FileInfo (" /app/appsettings.Developer.json" ));
5252```
5353
@@ -192,7 +192,6 @@ const ushort MagicNumberPort = 80;
192192var deepThoughtContainer = new ContainerBuilder ()
193193 .WithName (Guid .NewGuid ().ToString (" D" ))
194194 .WithImage (" alpine" )
195- .WithExposedPort (MagicNumberPort )
196195 .WithPortBinding (MagicNumberPort , true )
197196 .WithEnvironment (" MAGIC_NUMBER" , MagicNumber )
198197 .WithEntrypoint (" /bin/sh" , " -c" )
You can’t perform that action at this time.
0 commit comments