Skip to content

Commit

Permalink
Adapt dockerfile to chnages in celo-blockchain
Browse files Browse the repository at this point in the history
  • Loading branch information
palango committed Feb 27, 2024
1 parent 84b4842 commit 827cbcd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
# Stage 1: Build Rosetta
# Outputs: binary @ /rosetta/rosetta
#---------------------------------------------------------------------
FROM golang:1.19-alpine as builder
FROM golang:1.19-bookworm as builder
WORKDIR /rosetta
RUN apk add --no-cache make gcc musl-dev linux-headers git

RUN headers_package="linux-headers-$(dpkg --print-architecture)" && \
apt update && \
apt install -y build-essential git musl-dev $headers_package

# Downnload dependencies & cache them in docker layer
COPY go.mod .
Expand All @@ -47,7 +50,11 @@ FROM us.gcr.io/celo-org/geth:1.8.1

ARG COMMIT_SHA

RUN apk add --no-cache ca-certificates
RUN apt update &&\
apt install -y ca-certificates wget &&\
rm -rf /var/cache/apt &&\
rm -rf /var/lib/apt/lists/* &&\
ln -sf /bin/bash /bin/sh
COPY --from=builder /rosetta/rosetta /usr/local/bin/
RUN echo $COMMIT_SHA > /version.txt
RUN mkdir /data
Expand Down

0 comments on commit 827cbcd

Please sign in to comment.