diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0b212347a..7755566e27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -308,7 +308,7 @@ jobs: - name: Build Docker image uses: docker/build-push-action@1104d471370f9806843c095c1db02b5a90c5f8b6 # v3.3.1 with: - context: ${{ matrix.base_path }}/${{ matrix.project_name }} + context: . file: ${{ matrix.base_path }}/${{ matrix.project_name }}/Dockerfile platforms: | linux/amd64, diff --git a/src/Admin/Dockerfile b/src/Admin/Dockerfile index 11303d7a63..25b7fd104e 100644 --- a/src/Admin/Dockerfile +++ b/src/Admin/Dockerfile @@ -20,13 +20,13 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | b RUN npm install -g gulp WORKDIR /source -COPY *.csproj . -COPY ../../Directory.Build.props . +COPY src/Admin/*.csproj . +COPY Directory.Build.props . # Restore Admin project dependencies and tools RUN . /tmp/rid.txt && dotnet restore -r $RID -COPY . . +COPY src/Admin/. . #COPY ../../.git/. ./.git/ # Build Admin app