Skip to content

Commit

Permalink
chore(docker): fix caching for templ install
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDevMinerTV committed Jul 4, 2024
1 parent 5f26c53 commit b6994ba
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 @@ -13,11 +13,10 @@ FROM golang:1.22-alpine AS backend-builder
WORKDIR /build
RUN apk add git

RUN go install github.com/a-h/templ/cmd/templ@latest

COPY ./go.mod .
COPY ./go.sum .
RUN go mod download
RUN go install github.com/a-h/templ/cmd/templ@latest

COPY . .

Expand Down

0 comments on commit b6994ba

Please sign in to comment.