Skip to content

Commit

Permalink
Create extra layer for caching go dependencies
Browse files Browse the repository at this point in the history
Fresher version of #129
  • Loading branch information
taraspos committed Dec 27, 2023
1 parent f94b256 commit 3e1bc17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ FROM golang:1.21-alpine AS builder
RUN apk --no-cache add gcc musl-dev

WORKDIR ${GOPATH}/src/github.com/mcuadros/ofelia
COPY . ${GOPATH}/src/github.com/mcuadros/ofelia

COPY go.mod go.sum ${GOPATH}/src/github.com/mcuadros/ofelia/
RUN go mod download

COPY . ${GOPATH}/src/github.com/mcuadros/ofelia/

RUN go build -o /go/bin/ofelia .

Expand Down

0 comments on commit 3e1bc17

Please sign in to comment.