Skip to content

Commit

Permalink
used caching on caddy build
Browse files Browse the repository at this point in the history
  • Loading branch information
trajano committed Jul 29, 2024
1 parent 0c8cbc0 commit 1cdfd6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1cdfd6e

Please sign in to comment.