mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-15 17:30:44 +00:00
add default env to runtime image
This commit is contained in:
parent
241a5b3fb2
commit
6ba021da8c
4 changed files with 8 additions and 8 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
FROM golang:1.25-alpine AS builder
|
FROM golang:1.25-alpine AS builder
|
||||||
|
|
||||||
ENV GODEBUG=randseednop=0
|
|
||||||
|
|
||||||
RUN apk add --no-cache make gcc musl-dev linux-headers git
|
RUN apk add --no-cache make gcc musl-dev linux-headers git
|
||||||
|
|
||||||
ADD . /XDPoSChain
|
ADD . /XDPoSChain
|
||||||
|
|
@ -9,6 +7,8 @@ RUN cd /XDPoSChain && make XDC
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
ENV GODEBUG=randseednop=0
|
||||||
|
|
||||||
WORKDIR /XDPoSChain
|
WORKDIR /XDPoSChain
|
||||||
|
|
||||||
COPY --from=builder /XDPoSChain/build/bin/XDC /usr/local/bin/XDC
|
COPY --from=builder /XDPoSChain/build/bin/XDC /usr/local/bin/XDC
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
FROM golang:1.25-alpine AS builder
|
FROM golang:1.25-alpine AS builder
|
||||||
|
|
||||||
ENV GODEBUG=randseednop=0
|
|
||||||
|
|
||||||
RUN apk add --no-cache make gcc musl-dev linux-headers
|
RUN apk add --no-cache make gcc musl-dev linux-headers
|
||||||
|
|
||||||
ADD . /XDPoSChain
|
ADD . /XDPoSChain
|
||||||
|
|
@ -13,6 +11,8 @@ FROM alpine:latest
|
||||||
|
|
||||||
LABEL maintainer="etienne@XDPoSChain.com"
|
LABEL maintainer="etienne@XDPoSChain.com"
|
||||||
|
|
||||||
|
ENV GODEBUG=randseednop=0
|
||||||
|
|
||||||
WORKDIR /XDPoSChain
|
WORKDIR /XDPoSChain
|
||||||
|
|
||||||
COPY --from=builder /XDPoSChain/build/bin/bootnode /usr/local/bin/bootnode
|
COPY --from=builder /XDPoSChain/build/bin/bootnode /usr/local/bin/bootnode
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
FROM golang:1.25-alpine AS builder
|
FROM golang:1.25-alpine AS builder
|
||||||
|
|
||||||
ENV GODEBUG=randseednop=0
|
|
||||||
|
|
||||||
RUN apk add --no-cache make gcc musl-dev linux-headers git
|
RUN apk add --no-cache make gcc musl-dev linux-headers git
|
||||||
|
|
||||||
ADD . /XDPoSChain
|
ADD . /XDPoSChain
|
||||||
|
|
@ -12,6 +10,8 @@ RUN cd /XDPoSChain \
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
ENV GODEBUG=randseednop=0
|
||||||
|
|
||||||
WORKDIR /XDPoSChain
|
WORKDIR /XDPoSChain
|
||||||
|
|
||||||
COPY --from=builder /XDPoSChain/build/bin/XDC /usr/local/bin/XDC
|
COPY --from=builder /XDPoSChain/build/bin/XDC /usr/local/bin/XDC
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
FROM golang:1.25-alpine AS builder
|
FROM golang:1.25-alpine AS builder
|
||||||
|
|
||||||
ENV GODEBUG=randseednop=0
|
|
||||||
|
|
||||||
RUN apk add make build-base linux-headers
|
RUN apk add make build-base linux-headers
|
||||||
|
|
||||||
COPY . /builder
|
COPY . /builder
|
||||||
|
|
@ -22,6 +20,8 @@ RUN cd /builder && make && mv /builder/build/bin/XDC /builder/build/bin/XDC-loca
|
||||||
# The runtime image
|
# The runtime image
|
||||||
FROM alpine:3
|
FROM alpine:3
|
||||||
|
|
||||||
|
ENV GODEBUG=randseednop=0
|
||||||
|
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
|
|
||||||
RUN apk add --no-cache bash curl
|
RUN apk add --no-cache bash curl
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue