Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
use FROM --platform=$BUILDPLATFORM, expose 9090 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
steezeburger authored Apr 10, 2023
1 parent 7cf8b75 commit e5ab9da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# > docker build -t metro .
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.metro:/root/.metro -v ~/.metrocli:/root/.metrocli metro metro init
# > docker run -it -p 46657:46657 -p 46656:46656 -v ~/.metro:/root/.metro -v ~/.metrocli:/root/.metrocli metro metro start
FROM golang:1.19-alpine AS build-env
FROM --platform=$BUILDPLATFORM golang:1.19-alpine AS build-env

# Set up dependencies
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3
Expand All @@ -18,7 +18,7 @@ RUN apk add --no-cache $PACKAGES && \
make install

# Final image
FROM alpine:edge
FROM --platform=$BUILDPLATFORM alpine:edge

# Install ca-certificates
RUN apk add --update ca-certificates
Expand All @@ -29,7 +29,7 @@ COPY --from=build-env /go/bin/metro /usr/bin/metro

COPY ./scripts/single-node.sh .

EXPOSE 26657 1317
EXPOSE 26657 1317 9090

ENTRYPOINT [ "./single-node.sh" ]
# NOTE: to run this image, docker run -d -p 26657:26657 ./single-node.sh {{chain_id}} {{genesis_account}}

0 comments on commit e5ab9da

Please sign in to comment.