Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 committed Feb 29, 2024
1 parent ccc1634 commit 9b91a34
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/make -f

docker-build-e2e-pre-upgrade:
@DOCKER_BUILDKIT=1 docker build -t ghcr.io/dymensionxyz/dymension:e2e-pre-upgrade -f pre.Dockerfile .

###############################################################################
### E2E tests ###
###############################################################################
Expand Down
31 changes: 31 additions & 0 deletions pre.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM golang:1.19-alpine3.16 as go-builder

ARG LINK_STATICALLY

ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3

RUN apk add --no-cache $PACKAGES

RUN git clone -b 'v3.0.0' --single-branch --depth 1 https://github.com/dymensionxyz/dymension.git /dymension

WORKDIR /dymension

RUN make build

FROM alpine:3.16.1

RUN apk add curl jq bash vim

COPY --from=go-builder /dymension/build/dymd /usr/local/bin/

WORKDIR /dymension

COPY scripts/* ./scripts/

ENV CHAIN_ID=local-testnet
ENV KEY_NAME=local-user
ENV MONIKER_NAME=local

RUN chmod +x ./scripts/*.sh

EXPOSE 26656 26657 1317 9090

0 comments on commit 9b91a34

Please sign in to comment.