Skip to content

Commit 5a24012

Browse files
authored
Make use of services-base image (blockscout#757)
1 parent 58d1c5e commit 5a24012

File tree

8 files changed

+8
-111
lines changed

8 files changed

+8
-111
lines changed

blockscout-ens/Dockerfile

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.74-buster as chef
2-
3-
WORKDIR /app
4-
ARG TARGETARCH
5-
RUN case ${TARGETARCH} in \
6-
"arm64") TARGETARCH=aarch_64 ;; \
7-
"amd64") TARGETARCH=x86_64 ;; \
8-
esac \
9-
&& wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-$TARGETARCH.zip -O ./protoc.zip \
10-
&& unzip protoc.zip \
11-
&& mv ./include/* /usr/include/ \
12-
&& mv ./bin/protoc /usr/bin/protoc
13-
14-
RUN case ${TARGETARCH} in \
15-
"amd64") TARGETARCH=x86_64 ;; \
16-
esac \
17-
&& wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-$TARGETARCH -O ./protoc-gen-openapiv2 \
18-
&& chmod +x protoc-gen-openapiv2 \
19-
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
1+
FROM ghcr.io/blockscout/services-base:latest as chef
202

213
FROM chef AS plan
224
COPY . .

eth-bytecode-db/eth-bytecode-db-server/Dockerfile

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
2-
WORKDIR /app
3-
4-
RUN apt-get update && apt-get install -y curl wget unzip
5-
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
6-
&& unzip protoc.zip \
7-
&& mv ./include/* /usr/include/ \
8-
&& mv ./bin/protoc /usr/bin/protoc
9-
10-
RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
11-
&& chmod +x protoc-gen-openapiv2 \
12-
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
1+
FROM ghcr.io/blockscout/services-base:latest as chef
132

143
FROM chef AS plan
154
COPY . .

sig-provider/Dockerfile

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
2-
WORKDIR /app
3-
4-
RUN apt-get update && apt-get install -y curl wget unzip
5-
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
6-
&& unzip protoc.zip \
7-
&& mv ./include/* /usr/include/ \
8-
&& mv ./bin/protoc /usr/bin/protoc
9-
10-
RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
11-
&& chmod +x protoc-gen-openapiv2 \
12-
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
1+
FROM ghcr.io/blockscout/services-base:latest as chef
132

143
FROM chef AS plan
154
COPY . .

smart-contract-verifier/smart-contract-verifier-http/Dockerfile

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
2-
WORKDIR /app
3-
4-
RUN apt-get update && apt-get install -y curl wget unzip
5-
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
6-
&& unzip protoc.zip \
7-
&& mv ./include/* /usr/include/ \
8-
&& mv ./bin/protoc /usr/bin/protoc
9-
10-
RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
11-
&& chmod +x protoc-gen-openapiv2 \
12-
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
1+
FROM ghcr.io/blockscout/services-base:latest as chef
132

143
FROM chef AS plan
154
COPY . .

smart-contract-verifier/smart-contract-verifier-server/Dockerfile

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
2-
WORKDIR /app
3-
4-
RUN apt-get update && apt-get install -y curl wget unzip
5-
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
6-
&& unzip protoc.zip \
7-
&& mv ./include/* /usr/include/ \
8-
&& mv ./bin/protoc /usr/bin/protoc
9-
10-
RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
11-
&& chmod +x protoc-gen-openapiv2 \
12-
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
1+
FROM ghcr.io/blockscout/services-base:latest as chef
132

143
FROM chef AS plan
154
COPY . .

stats/Dockerfile

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
2-
WORKDIR /app
3-
4-
RUN apt-get update && apt-get install -y curl wget unzip
5-
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
6-
&& unzip protoc.zip \
7-
&& mv ./include/* /usr/include/ \
8-
&& mv ./bin/protoc /usr/bin/protoc
9-
10-
RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
11-
&& chmod +x protoc-gen-openapiv2 \
12-
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
1+
FROM ghcr.io/blockscout/services-base:latest as chef
132

143
FROM chef AS plan
154
COPY . .

user-ops-indexer/Dockerfile

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.72-buster as chef
2-
WORKDIR /app
3-
4-
RUN apt-get update && apt-get install -y curl wget unzip
5-
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip -O ./protoc.zip \
6-
&& unzip protoc.zip \
7-
&& mv ./include/* /usr/include/ \
8-
&& mv ./bin/protoc /usr/bin/protoc
9-
10-
RUN wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-x86_64 -O ./protoc-gen-openapiv2 \
11-
&& chmod +x protoc-gen-openapiv2 \
12-
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
1+
FROM ghcr.io/blockscout/services-base:latest as chef
132

143
FROM chef AS plan
154
COPY . .

visualizer/Dockerfile

+1-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
FROM lukemathwalker/cargo-chef:0.1.62-rust-1.74-buster as chef
2-
3-
WORKDIR /app
4-
ARG TARGETARCH
5-
RUN case ${TARGETARCH} in \
6-
"arm64") TARGETARCH=aarch_64 ;; \
7-
"amd64") TARGETARCH=x86_64 ;; \
8-
esac \
9-
&& wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-$TARGETARCH.zip -O ./protoc.zip \
10-
&& unzip protoc.zip \
11-
&& mv ./include/* /usr/include/ \
12-
&& mv ./bin/protoc /usr/bin/protoc
13-
14-
RUN case ${TARGETARCH} in \
15-
"amd64") TARGETARCH=x86_64 ;; \
16-
esac \
17-
&& wget https://github.com/grpc-ecosystem/grpc-gateway/releases/download/v2.15.0/protoc-gen-openapiv2-v2.15.0-linux-$TARGETARCH -O ./protoc-gen-openapiv2 \
18-
&& chmod +x protoc-gen-openapiv2 \
19-
&& mv ./protoc-gen-openapiv2 /usr/bin/protoc-gen-openapiv2
20-
1+
FROM ghcr.io/blockscout/services-base:latest as chef
212

223
FROM chef AS plan
234
COPY . .

0 commit comments

Comments
 (0)