diff --git a/server/src/FilterLists.Agent/Dockerfile b/server/src/FilterLists.Agent/Dockerfile index 6510e0326..4ed7c8408 100644 --- a/server/src/FilterLists.Agent/Dockerfile +++ b/server/src/FilterLists.Agent/Dockerfile @@ -1,5 +1,5 @@ -# Context: . -# Command: docker build -f server/src/FilterLists.Agent/Dockerfile . +# Context: ../../ +# Command: docker build -f src/FilterLists.Agent/Dockerfile . # init base FROM mcr.microsoft.com/dotnet/core/runtime-deps:3.1-alpine as base @@ -11,11 +11,11 @@ FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build # restore WORKDIR /app/src/FilterLists.Agent -COPY server/src/FilterLists.Agent/FilterLists.Agent.csproj . +COPY src/FilterLists.Agent/FilterLists.Agent.csproj . RUN dotnet restore # build -COPY server/src/FilterLists.Agent/. . +COPY src/FilterLists.Agent/. . RUN dotnet build -c Release -r linux-musl-x64 --no-restore # init Agent.Tests @@ -24,11 +24,11 @@ ENTRYPOINT ["dotnet", "test", "--logger:trx"] # restore Agent.Tests WORKDIR /app/tests/FilterLists.Agent.Tests -COPY server/tests/FilterLists.Agent.Tests/FilterLists.Agent.Tests.csproj . +COPY tests/FilterLists.Agent.Tests/FilterLists.Agent.Tests.csproj . RUN dotnet restore # build Agent.Tests -COPY server/tests/FilterLists.Agent.Tests/. . +COPY tests/FilterLists.Agent.Tests/. . RUN dotnet build -c Release --no-restore # publish diff --git a/server/src/FilterLists.Agent/debug.Dockerfile b/server/src/FilterLists.Agent/debug.Dockerfile index f5b88921a..6d53ebee4 100644 --- a/server/src/FilterLists.Agent/debug.Dockerfile +++ b/server/src/FilterLists.Agent/debug.Dockerfile @@ -1,5 +1,5 @@ -# Context: . -# Command: docker build -f server/src/FilterLists.Agent/debug.Dockerfile . +# Context: ../../ +# Command: docker build -f src/FilterLists.Agent/debug.Dockerfile . # init base debug (for VS) FROM mcr.microsoft.com/dotnet/core/runtime:3.1-buster-slim AS base