Skip to content

Commit

Permalink
Restore and publish on separate steps (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
g3rv4 authored Dec 15, 2023
1 parent 5919c3b commit 586cede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ ARG ARCH=
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-1-alpine3.18-${ARCH} AS builder
WORKDIR /src
COPY src /src/
RUN dotnet publish -c Release /src/GetMoarFediverse.csproj -o /app
RUN dotnet restore /src/GetMoarFediverse.csproj --disable-parallel
RUN dotnet publish -c Release /src/GetMoarFediverse.csproj -o /app --no-restore

FROM mcr.microsoft.com/dotnet/aspnet:8.0.0-alpine3.18-${ARCH}
VOLUME ["/data"]
Expand Down

0 comments on commit 586cede

Please sign in to comment.