Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use published alpine container for local "quick" docker builds #45

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions Dockerfile_quick
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
ARG UBUNTU_BUILDER=ubuntu:20.04
ARG MAINNET_RUNNER=quay.io/team-helium/blockchain-node:blockchain-node-ubuntu18-1.1.53
ARG TESTNET_RUNNER=quay.io/team-helium/blockchain-node:blockchain-node-testnet-ubuntu18-1.1.53
ARG BUILDER=golang:alpine3.15
ARG MAINNET_RUNNER=quay.io/team-helium/blockchain-node:blockchain-node-1.1.56
ARG TESTNET_RUNNER=quay.io/team-helium/blockchain-node:blockchain-node-testnet-1.1.56
ARG NETWORK=mainnet


FROM $UBUNTU_BUILDER as rosetta-builder
FROM $BUILDER as rosetta-builder

WORKDIR /src

RUN apt update \
&& apt install -y --no-install-recommends \
curl ca-certificates git \
&& curl -L https://golang.org/dl/go1.17.1.linux-amd64.tar.gz | tar xzf -

ENV PATH="/src/go/bin:$PATH" \
CGO_ENABLED=0

Expand Down Expand Up @@ -44,9 +39,8 @@ FROM runner-${NETWORK} as rosetta-helium-final
EXPOSE 8080
EXPOSE 44158

RUN apt update \
&& apt install -y --no-install-recommends \
ca-certificates git npm
RUN apk add --no-cache --update \
ca-certificates git npm

RUN cd helium-constructor \
&& npm install \
Expand Down