Skip to content

Commit 80a4e77

Browse files
pfi79denyeart
authored andcommitted
update Dockerfiles to remove the warnings
Signed-off-by: Fedor Partanskiy <[email protected]>
1 parent 853f079 commit 80a4e77

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

images/baseos/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
ARG GO_VER
2020
ARG UBUNTU_VER
2121

22-
FROM ubuntu:${UBUNTU_VER} as base
22+
FROM ubuntu:${UBUNTU_VER} AS base
2323

2424
RUN apt update && apt install -y \
2525
tzdata

images/orderer/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
###############################################################################
2222

2323
ARG UBUNTU_VER
24-
FROM ubuntu:${UBUNTU_VER} as builder
24+
FROM ubuntu:${UBUNTU_VER} AS builder
2525

2626
ARG TARGETARCH
2727
ARG TARGETOS
@@ -57,8 +57,8 @@ ARG FABRIC_VER
5757
# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
5858
RUN echo 'hosts: files dns' > /etc/nsswitch.conf
5959

60-
ENV FABRIC_CFG_PATH /etc/hyperledger/fabric
61-
ENV FABRIC_VER ${FABRIC_VER}
60+
ENV FABRIC_CFG_PATH=/etc/hyperledger/fabric
61+
ENV FABRIC_VER=${FABRIC_VER}
6262

6363
COPY --from=builder build/bin/orderer /usr/local/bin
6464
COPY --from=builder sampleconfig/msp ${FABRIC_CFG_PATH}/msp

images/peer/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
###############################################################################
2222

2323
ARG UBUNTU_VER
24-
FROM ubuntu:${UBUNTU_VER} as builder
24+
FROM ubuntu:${UBUNTU_VER} AS builder
2525

2626
ARG TARGETARCH
2727
ARG TARGETOS
@@ -60,8 +60,8 @@ ARG FABRIC_VER
6060
# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
6161
RUN echo 'hosts: files dns' > /etc/nsswitch.conf
6262

63-
ENV FABRIC_CFG_PATH /etc/hyperledger/fabric
64-
ENV FABRIC_VER ${FABRIC_VER}
63+
ENV FABRIC_CFG_PATH=/etc/hyperledger/fabric
64+
ENV FABRIC_VER=${FABRIC_VER}
6565

6666
COPY --from=builder build/bin/peer /usr/local/bin
6767
COPY --from=builder sampleconfig/msp ${FABRIC_CFG_PATH}/msp

0 commit comments

Comments
 (0)