Merge pull request #1590 from XinFinOrg/fix-docker-default-env

fix: add default env to runtime image
This commit is contained in:
Wanwiset Peerapatanapokin 2025-09-25 16:02:28 +04:00 committed by GitHub
commit e4ee00adf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View file

@ -1,7 +1,5 @@
FROM golang:1.25-alpine AS builder
ENV GODEBUG=randseednop=0
RUN apk add --no-cache make gcc musl-dev linux-headers git
ADD . /XDPoSChain
@ -9,6 +7,8 @@ RUN cd /XDPoSChain && make XDC
FROM alpine:latest
ENV GODEBUG=randseednop=0
WORKDIR /XDPoSChain
COPY --from=builder /XDPoSChain/build/bin/XDC /usr/local/bin/XDC

View file

@ -1,7 +1,5 @@
FROM golang:1.25-alpine AS builder
ENV GODEBUG=randseednop=0
RUN apk add --no-cache make gcc musl-dev linux-headers
ADD . /XDPoSChain
@ -13,6 +11,8 @@ FROM alpine:latest
LABEL maintainer="etienne@XDPoSChain.com"
ENV GODEBUG=randseednop=0
WORKDIR /XDPoSChain
COPY --from=builder /XDPoSChain/build/bin/bootnode /usr/local/bin/bootnode

View file

@ -1,7 +1,5 @@
FROM golang:1.25-alpine AS builder
ENV GODEBUG=randseednop=0
RUN apk add --no-cache make gcc musl-dev linux-headers git
ADD . /XDPoSChain
@ -12,6 +10,8 @@ RUN cd /XDPoSChain \
FROM alpine:latest
ENV GODEBUG=randseednop=0
WORKDIR /XDPoSChain
COPY --from=builder /XDPoSChain/build/bin/XDC /usr/local/bin/XDC

View file

@ -1,7 +1,5 @@
FROM golang:1.25-alpine AS builder
ENV GODEBUG=randseednop=0
RUN apk add make build-base linux-headers
COPY . /builder
@ -22,6 +20,8 @@ RUN cd /builder && make && mv /builder/build/bin/XDC /builder/build/bin/XDC-loca
# The runtime image
FROM alpine:3
ENV GODEBUG=randseednop=0
WORKDIR /work
RUN apk add --no-cache bash curl