diff --git a/deployment/docker/runner/Dockerfile b/deployment/docker/runner/Dockerfile index 256044e4..30b7a3b6 100644 --- a/deployment/docker/runner/Dockerfile +++ b/deployment/docker/runner/Dockerfile @@ -18,8 +18,7 @@ COPY . /go/src/semaphore ARG TARGETOS ARG TARGETARCH -RUN --mount=type=cache,target=/go/src/semaphore/web/node_modules \ - --mount=type=cache,target=/go/pkg \ +RUN --mount=type=cache,target=/go/pkg \ --mount=type=cache,target=/root/.cache/go-build \ task deps && \ task build GOOS=${TARGETOS} GOARCH=${TARGETARCH} diff --git a/deployment/docker/server/Dockerfile b/deployment/docker/server/Dockerfile index 8842cd4f..061ef6ca 100644 --- a/deployment/docker/server/Dockerfile +++ b/deployment/docker/server/Dockerfile @@ -20,10 +20,7 @@ ARG TARGETARCH RUN --mount=type=cache,target=/go/pkg \ --mount=type=cache,target=/root/.cache/go-build \ - task deps - -RUN --mount=type=cache,target=/go/pkg \ - --mount=type=cache,target=/root/.cache/go-build \ + task deps && \ task build GOOS=${TARGETOS} GOARCH=${TARGETARCH} FROM alpine:3.19