File tree Expand file tree Collapse file tree 5 files changed +7
-6
lines changed
Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ function Execute-Tests
2828function Build-DockerImage ($arch )
2929{
3030 $rid = " linux-$ ( $arch.rid ) "
31- & dotnet publish src/ SeqCli/ SeqCli.csproj - c Release -f $framework - r $rid -- self- contained / p:VersionPrefix= $version
31+ & dotnet publish src/ SeqCli/ SeqCli.csproj - c Release -f $framework - r $rid -- self- contained / p:VersionPrefix= $version / p:PublishSingleFile = true
3232 if ($LASTEXITCODE -ne 0 ) { exit 2 }
3333
3434 & docker buildx build -- platform " $ ( $arch.platform ) " -f dockerfiles/ seqcli/ $rid.Dockerfile - t " $image -ci:$version -$ ( $arch.rid ) " .
Original file line number Diff line number Diff line change 1- FROM --platform=linux/arm/v8 ubuntu:22.04
1+ FROM ubuntu:22.04
22
33RUN apt-get update \
44 && apt-get install -y --no-install-recommends \
Original file line number Diff line number Diff line change 1- FROM --platform=linux/amd64 ubuntu:22.04
1+ FROM ubuntu:22.04
22
33RUN apt-get update \
44 && apt-get install -y --no-install-recommends \
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ chmod +x dotnet-install.sh
1414./dotnet-install.sh --install-dir $HOME /.dotnetcli --no-path --version $RequiredDotnetVersion
1515rm dotnet-install.sh
1616
17- docker run --privileged --rm docker /binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
17+ docker run --privileged --rm linuxkit /binfmt:bebbae0c1100ebf7bf2ad4dfb9dfd719cf0ef132
1818sudo service docker restart
Original file line number Diff line number Diff line change 1- using System . IO ;
1+ using System ;
2+ using System . IO ;
23
34namespace SeqCli . Util ;
45
56static class Content
67{
78 public static string GetPath ( string relativePath )
89 {
9- var thisDir = Path . GetDirectoryName ( Path . GetFullPath ( typeof ( Content ) . Assembly . Location ) ) ?? "." ;
10+ var thisDir = Path . GetDirectoryName ( Path . GetFullPath ( AppContext . BaseDirectory ) ) ?? "." ;
1011 return Path . Combine ( thisDir , relativePath ) ;
1112 }
1213}
You can’t perform that action at this time.
0 commit comments