minor dockerfile improvements (#2443)

This commit is contained in:
sam bacha 2021-07-26 19:39:21 -07:00 committed by GitHub
parent db86092ccd
commit c682dd16d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -1,4 +1,5 @@
FROM docker.io/library/golang:1.16-alpine3.13 as builder
# syntax=docker/dockerfile:1
FROM docker.io/library/golang:1.16-alpine3.13 AS builder
RUN apk --no-cache add make gcc g++ linux-headers git bash ca-certificates libgcc libstdc++
@ -21,3 +22,15 @@ RUN chown -R erigon:erigon /home/erigon
USER erigon
EXPOSE 8545 8546 30303 30303/udp 30304 30304/udp 8080 9090 6060
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="Erigon" \
org.label-schema.description="Erigon Ethereum Client" \
org.label-schema.url="https://torquem.ch" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/ledgerwatch/erigon.git" \
org.label-schema.vendor="Torquem" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"

View File

@ -19,7 +19,7 @@ go-version:
fi
docker:
docker build -t turbo-geth:latest --build-arg git_commit='${GIT_COMMIT}' --build-arg git_branch='${GIT_BRANCH}' --build-arg git_tag='${GIT_TAG}' .
DOCKER_BUILDKIT=1 docker build -t erigon:latest --build-arg git_commit='${GIT_COMMIT}' --build-arg git_branch='${GIT_BRANCH}' --build-arg git_tag='${GIT_TAG}' .
xdg_data_home := ~/.local/share
ifdef XDG_DATA_HOME