Skip to content

Commit

Permalink
Set maxcpucount to 1 for arm64 docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan authored Jan 6, 2024
1 parent fe3e8d3 commit ddeea97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ 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/ -r=linux-arm64 Shoko.CLI/Shoko.CLI.csproj "/p:Version=\"${version}\",InformationalVersion=\"channel=${channel},commit=${commit},tag=${tag},date=${date}\""
# maxcpucount added because we were facing this issue -> https://github.com/dotnet/sdk/issues/2902
RUN dotnet build -c=Release -o=/usr/src/app/build/ -r=linux-arm64 Shoko.CLI/Shoko.CLI.csproj "/p:Version=\"${version}\",InformationalVersion=\"channel=${channel},commit=${commit},tag=${tag},date=${date}\"" /maxcpucount:1

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

0 comments on commit ddeea97

Please sign in to comment.