Docker: use recommended way to install gcc (by build-base package) (#4134)

This commit is contained in:
Alex Sharov 2022-05-12 15:17:24 +07:00 committed by GitHub
parent 1b82acd7ff
commit 0929df8915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,6 @@
**/*.dSYM
build
tests/testdata
tests/.git
tests
cmd/prometheus

View File

@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
FROM docker.io/library/golang:1.18-alpine3.15 AS builder
RUN apk --no-cache add make gcc g++ linux-headers git bash ca-certificates libgcc libstdc++
RUN apk --no-cache add build-base linux-headers git bash ca-certificates libstdc++
WORKDIR /app
ADD . .
@ -10,7 +10,7 @@ RUN make erigon rpcdaemon integration sentry txpool downloader hack observer db-
FROM docker.io/library/alpine:3.15
RUN apk add --no-cache ca-certificates libgcc libstdc++ tzdata
RUN apk add --no-cache ca-certificates libstdc++ tzdata
COPY --from=builder /app/build/bin/* /usr/local/bin/
RUN adduser -H -u 1000 -g 1000 -D erigon