Skip to content

Commit

Permalink
update Dockerfiles to remove the warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
  • Loading branch information
pfi79 committed Oct 18, 2024
1 parent 853f079 commit e3eb778
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion images/baseos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions images/orderer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
###############################################################################

ARG UBUNTU_VER
FROM ubuntu:${UBUNTU_VER} as builder
FROM ubuntu:${UBUNTU_VER} AS builder

ARG TARGETARCH
ARG TARGETOS
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions images/peer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
###############################################################################

ARG UBUNTU_VER
FROM ubuntu:${UBUNTU_VER} as builder
FROM ubuntu:${UBUNTU_VER} AS builder

ARG TARGETARCH
ARG TARGETOS
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e3eb778

Please sign in to comment.