mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(directory): ♻ exclude test migrationts from Dockerfile.dev (requires orchestrating db instance externally)
This commit is contained in:
parent
cba9373bfe
commit
99dfdc640b
1 changed files with 0 additions and 13 deletions
|
|
@ -26,19 +26,6 @@ WORKDIR /src/FilterLists.Directory.Api
|
|||
COPY directory/src/FilterLists.Directory.Api/. .
|
||||
RUN dotnet publish --no-restore -o /app/publish -r linux-musl-x64
|
||||
|
||||
# init Infrastructure.Migrations.Tests
|
||||
FROM build AS test-migrations
|
||||
ENTRYPOINT ["dotnet", "test", "--logger:trx"]
|
||||
|
||||
# restore Infrastructure.Migrations.Tests
|
||||
WORKDIR /src/FilterLists.Directory.Infrastructure.Migrations.Tests
|
||||
COPY directory/tests/FilterLists.Directory.Infrastructure.Migrations.Tests/FilterLists.Directory.Infrastructure.Migrations.Tests.csproj .
|
||||
RUN dotnet restore
|
||||
|
||||
# build Infrastructure.Migrations.Tests
|
||||
COPY directory/tests/FilterLists.Directory.Infrastructure.Migrations.Tests/. .
|
||||
RUN dotnet build --no-restore -r linux-musl-x64
|
||||
|
||||
# package final
|
||||
FROM base AS final
|
||||
COPY --from=build /app/publish .
|
||||
|
|
|
|||
Loading…
Reference in a new issue