mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
build(directory): 🔨 combine build and publish steps to resolve System.IO.FileNotFoundException
This commit is contained in:
parent
92eec381ec
commit
7b253c0f91
1 changed files with 2 additions and 6 deletions
|
|
@ -25,12 +25,8 @@ COPY src/FilterLists.Directory.Infrastructure.Migrations/. FilterLists.Directory
|
|||
COPY src/FilterLists.Directory.Infrastructure/. FilterLists.Directory.Infrastructure/
|
||||
WORKDIR /src/FilterLists.Directory.Api
|
||||
COPY src/FilterLists.Directory.Api/. .
|
||||
RUN dotnet build --no-restore -c Release
|
||||
|
||||
# publish
|
||||
FROM build AS publish
|
||||
RUN dotnet publish --no-build -c Release -o /app/publish -r linux-musl-x64 -p:PublishSingleFile=true
|
||||
RUN dotnet publish --no-restore -c Release -o /app/publish -r linux-musl-x64 -p:PublishSingleFile=true
|
||||
|
||||
# package final
|
||||
FROM base AS final
|
||||
COPY --from=publish /app/publish .
|
||||
COPY --from=build /app/publish .
|
||||
Loading…
Reference in a new issue