diff --git a/docker/node/Dockerfile b/docker/node/Dockerfile index 8b0e6c44f14..cf6a8955c76 100644 --- a/docker/node/Dockerfile +++ b/docker/node/Dockerfile @@ -1,6 +1,6 @@ FROM golang:1.20.7 as builder -RUN apt-get update && apt-get install -y +RUN apt-get update && apt-get upgrade -y WORKDIR /go/mx-chain-go COPY . . RUN go mod tidy @@ -11,8 +11,10 @@ RUN cp /go/pkg/mod/github.com/multiversx/$(cat /go/mx-chain-go/go.mod | grep mx- RUN cp /go/pkg/mod/github.com/multiversx/$(cat /go/mx-chain-go/go.mod | grep mx-chain-vm-go | sort -n | tail -n -1| awk -F '/' '{print$3}'| sed 's/ /@/g')/wasmer2/libvmexeccapi.so /lib/libvmexeccapi.so WORKDIR /go/mx-chain-go/cmd/node + # ===== SECOND STAGE ====== FROM ubuntu:22.04 +RUN apt-get update && apt-get upgrade -y COPY --from=builder "/go/mx-chain-go/cmd/node" "/go/mx-chain-go/cmd/node/" COPY --from=builder "/lib/libwasmer_linux_amd64.so" "/lib/libwasmer_linux_amd64.so" COPY --from=builder "/lib/libvmexeccapi.so" "/lib/libvmexeccapi.so"