From def1e84e71436eeacbbb1f14b3d29d1cd60770ab Mon Sep 17 00:00:00 2001 From: Alejo Thomas Ortega Date: Wed, 10 Jan 2024 13:30:49 -0300 Subject: [PATCH] try fixing NuGet package download --- .github/workflows/build-docker.yml | 3 ++- Dockerfile | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 3f9b1360..4004bb57 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -12,4 +12,5 @@ jobs: uses: actions/checkout@v2 - name: Build Docker image - run: docker build -t lods . \ No newline at end of file + run: docker build --no-cache -t lods . + diff --git a/Dockerfile b/Dockerfile index dd8d07e1..ab4df952 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,11 +8,14 @@ COPY DCL_PiXYZ/ ./api COPY nuget.config ./ COPY local_packages/ ./local_packages +WORKDIR /app/local_packages + +RUN dir + WORKDIR /app/api # Restore dependencies and packages -# RUN dotnet publish --source /app/local-packages --source https://api.nuget.org/v3/index.json -c Release -r win10-x64 -o ./publish --self-contained true -RUN dotnet publish -c Release -r win10-x64 -o ./publish --self-contained true +RUN dotnet publish -c Release -r win10-x64 -o ./publish --self-contained true # Copy the rest of the code into the container COPY DCL_PiXYZ/ ./