Skip to content

Commit

Permalink
chore: improve localnet incremental build times
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Apr 18, 2024
1 parent e0ea646 commit 0b2bc97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile-localnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM golang:1.20-alpine3.18
ENV GOPATH /go
ENV GOOS=linux
ENV CGO_ENABLED=1
ENV GOCACHE=/root/.cache/go-build

RUN apk --no-cache add git make build-base jq openssh libusb-dev linux-headers bash curl tmux python3 py3-pip
RUN pip install requests
Expand All @@ -14,8 +15,8 @@ COPY go.sum .
RUN go mod download
COPY . .

RUN make install
RUN make install-zetae2e
RUN --mount=type=cache,target="/root/.cache/go-build" make install
RUN --mount=type=cache,target="/root/.cache/go-build" make install-zetae2e

RUN ssh-keygen -A
WORKDIR /root
Expand Down

0 comments on commit 0b2bc97

Please sign in to comment.