From e3eb7787c208e3a1ba604a471e7f32165b0a62c4 Mon Sep 17 00:00:00 2001 From: Fedor Partanskiy Date: Thu, 17 Oct 2024 18:56:40 +0300 Subject: [PATCH] update Dockerfiles to remove the warnings Signed-off-by: Fedor Partanskiy --- images/baseos/Dockerfile | 2 +- images/orderer/Dockerfile | 6 +++--- images/peer/Dockerfile | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/images/baseos/Dockerfile b/images/baseos/Dockerfile index faa61de065c..b09304cf1fd 100644 --- a/images/baseos/Dockerfile +++ b/images/baseos/Dockerfile @@ -19,7 +19,7 @@ ARG GO_VER ARG UBUNTU_VER -FROM ubuntu:${UBUNTU_VER} as base +FROM ubuntu:${UBUNTU_VER} AS base RUN apt update && apt install -y \ tzdata diff --git a/images/orderer/Dockerfile b/images/orderer/Dockerfile index 0ed200428b6..7da018d8c7d 100644 --- a/images/orderer/Dockerfile +++ b/images/orderer/Dockerfile @@ -21,7 +21,7 @@ ############################################################################### ARG UBUNTU_VER -FROM ubuntu:${UBUNTU_VER} as builder +FROM ubuntu:${UBUNTU_VER} AS builder ARG TARGETARCH ARG TARGETOS @@ -57,8 +57,8 @@ ARG FABRIC_VER # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf RUN echo 'hosts: files dns' > /etc/nsswitch.conf -ENV FABRIC_CFG_PATH /etc/hyperledger/fabric -ENV FABRIC_VER ${FABRIC_VER} +ENV FABRIC_CFG_PATH=/etc/hyperledger/fabric +ENV FABRIC_VER=${FABRIC_VER} COPY --from=builder build/bin/orderer /usr/local/bin COPY --from=builder sampleconfig/msp ${FABRIC_CFG_PATH}/msp diff --git a/images/peer/Dockerfile b/images/peer/Dockerfile index a6a753869d4..e004cbaf91e 100644 --- a/images/peer/Dockerfile +++ b/images/peer/Dockerfile @@ -21,7 +21,7 @@ ############################################################################### ARG UBUNTU_VER -FROM ubuntu:${UBUNTU_VER} as builder +FROM ubuntu:${UBUNTU_VER} AS builder ARG TARGETARCH ARG TARGETOS @@ -60,8 +60,8 @@ ARG FABRIC_VER # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf RUN echo 'hosts: files dns' > /etc/nsswitch.conf -ENV FABRIC_CFG_PATH /etc/hyperledger/fabric -ENV FABRIC_VER ${FABRIC_VER} +ENV FABRIC_CFG_PATH=/etc/hyperledger/fabric +ENV FABRIC_VER=${FABRIC_VER} COPY --from=builder build/bin/peer /usr/local/bin COPY --from=builder sampleconfig/msp ${FABRIC_CFG_PATH}/msp