Skip to content

Commit

Permalink
try fixing NuGet package download
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Jan 10, 2024
1 parent 511d7b4 commit def1e84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ jobs:
uses: actions/checkout@v2

- name: Build Docker image
run: docker build -t lods .
run: docker build --no-cache -t lods .

7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/ ./
Expand Down

0 comments on commit def1e84

Please sign in to comment.