forked from ShokoAnime/ShokoServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cross-compile arm build for faster build times
- Loading branch information
1 parent
2ef7721
commit 8b5d99b
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ | ||
|