mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
Dockerfile add buildcache (#4332)
This commit is contained in:
parent
3ab2f07294
commit
4150c66eb7
@ -1,4 +1,4 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
# syntax = docker/dockerfile:1.2
|
||||
FROM docker.io/library/golang:1.18-alpine3.15 AS builder
|
||||
|
||||
RUN apk --no-cache add build-base linux-headers git bash ca-certificates libstdc++
|
||||
@ -6,7 +6,10 @@ RUN apk --no-cache add build-base linux-headers git bash ca-certificates libstdc
|
||||
WORKDIR /app
|
||||
ADD . .
|
||||
|
||||
RUN make erigon rpcdaemon integration sentry txpool downloader hack observer db-tools
|
||||
RUN --mount=type=cache,target=/root/.cache \
|
||||
--mount=type=cache,target=/tmp/go-build \
|
||||
--mount=type=cache,target=/go/pkg/mod \
|
||||
make all db-tools
|
||||
|
||||
FROM docker.io/library/alpine:3.15
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user