mirror of
https://github.com/g3rv4/GetMoarFediverse.git
synced 2024-11-21 15:13:08 +01:00
Restore and publish on separate steps (#46)
This commit is contained in:
parent
5919c3bc6f
commit
586cede38d
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user