Skip to content

Commit

Permalink
chore: fix docker build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Aug 6, 2024
1 parent d94047a commit 95cb862
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 5 additions & 4 deletions Dockerfile-localnet
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# syntax=ghcr.io/zeta-chain/docker-dockerfile:1.7-labs
# syntax=ghcr.io/zeta-chain/docker-dockerfile:1.9-labs
# check=error=true
FROM ghcr.io/zeta-chain/golang:1.22.5-bookworm AS base-build

ENV GOPATH /go
ENV GOPATH=/go
ENV GOOS=linux
ENV CGO_ENABLED=1
ENV GOCACHE=/root/.cache/go-build
Expand Down Expand Up @@ -41,7 +42,7 @@ RUN mkdir -p /root/.zetacored/cosmovisor/genesis/bin && \
ln -s /usr/local/bin/zetaclientd /root/.zetaclientd/upgrades/genesis/zetacored && \
ln -s /root/.zetaclientd/upgrades/genesis /root/.zetaclientd/upgrades/current

ENV PATH /root/.zetacored/cosmovisor/current/bin/:/root/.zetaclientd/upgrades/current/:${PATH}
ENV PATH=/root/.zetacored/cosmovisor/current/bin/:/root/.zetaclientd/upgrades/current/:${PATH}

COPY contrib/localnet/scripts /root
COPY contrib/localnet/ssh_config /etc/ssh/ssh_config.d/localnet.conf
Expand All @@ -62,7 +63,7 @@ COPY --from=latest-build /go/bin/zetacored /go/bin/zetaclientd /go/bin/zetaclien

# Optional old version build (from source). This old build is used as the genesis version in the upgrade tests.
# Use --target latest-runtime to skip.
FROM base-build as old-build-source
FROM base-build AS old-build-source

ARG OLD_VERSION
RUN git clone https://github.com/zeta-chain/node.git
Expand Down
8 changes: 5 additions & 3 deletions contrib/localnet/orchestrator/Dockerfile.fastbuild
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM zetanode:latest as zeta
FROM ghcr.io/zeta-chain/ethereum-client-go:v1.10.26 as geth
FROM ghcr.io/zeta-chain/golang:1.22.5-bookworm as orchestrator
# syntax=ghcr.io/zeta-chain/docker-dockerfile:1.9-labs
# check=error=true
FROM zetanode:latest AS zeta
FROM ghcr.io/zeta-chain/ethereum-client-go:v1.10.26 AS geth
FROM ghcr.io/zeta-chain/golang:1.22.5-bookworm AS orchestrator

RUN apt update && \
apt install -yq jq yq curl tmux python3 openssh-server iputils-ping iproute2 && \
Expand Down

0 comments on commit 95cb862

Please sign in to comment.