From 1cdfd6e3521db42ca0376371251d9d52104cb6a3 Mon Sep 17 00:00:00 2001 From: Archimedes Trajano Date: Mon, 29 Jul 2024 08:08:08 -0400 Subject: [PATCH] used caching on caddy build --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f924cdd..6366db0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,6 @@ COPY ./src/ ./src/ COPY ./public/ ./public/ COPY ./.storybook/ ./.storybook/ COPY *.js *.json ./ -RUN ls ./ FROM ci-stage AS build-stage RUN npm run build @@ -15,7 +14,7 @@ FROM ci-stage AS build-storybook RUN npm run build-storybook FROM caddy:builder AS builder -RUN xcaddy build \ +RUN --mount=type=cache,target=/go/pkg/mod/cache xcaddy build \ --with github.com/caddyserver/caddy/v2=github.com/trajano/caddy/v2@ea6a6298f5ef94efef2900af22d200583ca09f3f FROM caddy:alpine