add default env to runtime image

This commit is contained in:
wanwiset25 2025-09-25 15:27:02 +04:00
parent 241a5b3fb2
commit 6ba021da8c
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