Skip to content

Commit 9253f1f

Browse files
committed
more docker publishing tweaks
1 parent 83ef4b6 commit 9253f1f

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

dockerfiles/seqcli/linux-arm64.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/arm/v8 ubuntu:22.04
1+
FROM ubuntu:22.04
22

33
RUN apt-get update \
44
&& apt-get install -y --no-install-recommends \

dockerfiles/seqcli/linux-x64.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/amd64 ubuntu:22.04
1+
FROM ubuntu:22.04
22

33
RUN apt-get update \
44
&& apt-get install -y --no-install-recommends \

src/SeqCli/SeqCli.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<AssemblyName>seqcli</AssemblyName>
66
<ApplicationIcon>..\..\asset\SeqCli.ico</ApplicationIcon>
77
<RuntimeIdentifiers>win-x64;linux-x64;linux-musl-x64;osx-x64;linux-arm64;linux-musl-arm64;osx-arm64</RuntimeIdentifiers>
8+
<PublishSingleFile>true</PublishSingleFile>
9+
<SelfContained>true</SelfContained>
810
<GenerateAssemblyInformationalVersionAttribute>True</GenerateAssemblyInformationalVersionAttribute>
911
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
1012
<TreatSpecificWarningsAsErrors />

src/SeqCli/Util/Content.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
using System.IO;
1+
using System;
2+
using System.IO;
23

34
namespace SeqCli.Util;
45

56
static 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
}

0 commit comments

Comments
 (0)