Skip to content

Commit

Permalink
Fix multiarch
Browse files Browse the repository at this point in the history
  • Loading branch information
techgarage-ir committed Sep 9, 2024
1 parent de1fa6e commit 5091e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY MikrotikAPI/*.csproj ./MikrotikAPI/
COPY Serilog.Ui.SqliteProvider/*.csproj ./Serilog.Ui.SqliteProvider/

# Restore packages
RUN dotnet restore --runtime linux-${TARGETARCH}
RUN dotnet restore --runtime linux-${BUILDARCH}

# Copy other files
COPY UI/. ./UI/
Expand All @@ -21,7 +21,7 @@ COPY Serilog.Ui.SqliteProvider/. ./Serilog.Ui.SqliteProvider/
RUN dotnet publish "./UI/MTWireGuard.csproj" -c Release \
-o /app/publish \
--no-restore \
--runtime linux-${TARGETARCH} \
--runtime linux-${BUILDARCH} \
--self-contained true \
/p:WarningLevel=0 \
/p:PublishTrimmed=true
Expand Down

0 comments on commit 5091e1e

Please sign in to comment.