From 87a0a71b9dc5e648429c6d3b996860ffaf48253d Mon Sep 17 00:00:00 2001 From: Andrea V <1577639+karimodm@users.noreply.github.com> Date: Tue, 17 Oct 2023 15:15:35 +0200 Subject: [PATCH] Remove Dockerfile caches --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 560c936dc..44a17fda1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,14 +17,12 @@ COPY . . # Ensure ca-certificates are up to date RUN update-ca-certificates -ENV GOCACHE=/go/cache - # Download go modules -RUN --mount=type=cache,target=/go go mod download -RUN --mount=type=cache,target=/go go mod verify +RUN go mod download +RUN go mod verify # Build the binary -RUN --mount=type=cache,target=/go go build -o /app/iota-core -tags="$BUILD_TAGS" -ldflags='-w -s' +RUN go build -o /app/iota-core -tags="$BUILD_TAGS" -ldflags='-w -s' # Copy the assets RUN cp ./config_defaults.json /app/config.json