From 0a016b48e382a6cb57ee3f672c7bce08d5ba8c89 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Thu, 9 Nov 2023 12:39:00 -0500 Subject: [PATCH] Change Docker context --- .github/workflows/build.yml | 2 +- src/Admin/Dockerfile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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