Skip to content

Commit

Permalink
Cross-compile arm build for faster build times
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan authored Aug 26, 2022
1 parent 2ef7721 commit 8b5d99b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0
FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/sdk:6.0

#MAINTAINER Cayde Dixon <[email protected]>

RUN mkdir -p /usr/src/app/source /usr/src/app/build
COPY . /usr/src/app/source
WORKDIR /usr/src/app/source

RUN dotnet build -c=Release -o=/usr/src/app/build/ Shoko.CLI/Shoko.CLI.csproj
RUN dotnet build -c=Release -o=/usr/src/app/build/ -r=linux-arm64 Shoko.CLI/Shoko.CLI.csproj

FROM mcr.microsoft.com/dotnet/aspnet:5.0
ENV PUID=1000 \
Expand Down

0 comments on commit 8b5d99b

Please sign in to comment.