Skip to content

Commit

Permalink
add dockerfile for neutron-query-relayer (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 authored May 13, 2024
1 parent 2b4fd1d commit 6c74c29
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
34 changes: 34 additions & 0 deletions starship/docker/relayers/neutron-query-relayer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
ARG BASE_IMAGE
ARG VERSION
FROM ${BASE_IMAGE} as builder

LABEL org.opencontainers.image.source="https://github.com/cosmology-tech/starship"

USER root

RUN apt update && apt -y install ca-certificates jq bash curl sed unzip -y

ENV CODE_NAME="neutron-query-relayer"
ENV VERSION=${VERSION:-"refs/heads/main"}
ENV CODE_REF=${CODE_REF:-"https://github.com/neutron-org/neutron-query-relayer/archive"}

ADD $CODE_REF/$VERSION.zip /tmp
RUN mkdir /app && cd /tmp && unzip ${VERSION##*/}.zip && mv /tmp/${CODE_NAME}-${VERSION##*/}/* /app

WORKDIR /app

RUN go mod download
RUN go build -a -o build/neutron_query_relayer ./cmd/neutron_query_relayer/*.go

FROM debian:buster

RUN apt update && apt install ca-certificates jq bash curl sed -y && apt-get clean

ADD ["https://github.com/CosmWasm/wasmvm/releases/download/v1.5.2/libwasmvm.x86_64.so","https://github.com/CosmWasm/wasmvm/releases/download/v1.5.2/libwasmvm.aarch64.so","/lib/"]

COPY --from=builder /app/run.sh .
COPY --from=builder /app/build/neutron_query_relayer /bin/

EXPOSE 9999

ENTRYPOINT ["neutron_query_relayer", "start"]
5 changes: 5 additions & 0 deletions starship/docker/relayers/neutron-query-relayer/versions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
base: golang:1.21-bullseye
versions:
- refs/heads/main
- refs/tags/v0.2.0
- refs/tags/v0.1.1

0 comments on commit 6c74c29

Please sign in to comment.