Skip to content

Commit

Permalink
build: Improve subsequent docker build times by caching nuget packages
Browse files Browse the repository at this point in the history
  • Loading branch information
VMelnalksnis committed Feb 12, 2024
1 parent 9da0db4 commit 918124b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM ghcr.io/vmelnalksnis/gnomeshade-build:8.0.101 AS build
WORKDIR /gnomeshade
COPY ./ ./
ARG BUILD_NUMBER=123
RUN ./deployment/publish.sh "Gnomeshade.WebApi" "linux-musl-x64" $BUILD_NUMBER
RUN --mount=type=cache,target=/root/.nuget/packages \
./deployment/publish.sh "Gnomeshade.WebApi" "linux-musl-x64" $BUILD_NUMBER

FROM mcr.microsoft.com/dotnet/runtime-deps:8.0.1-alpine3.18 as gnomeshade

Expand Down

0 comments on commit 918124b

Please sign in to comment.