Skip to content

Commit

Permalink
benchmark: upgrade docker base images
Browse files Browse the repository at this point in the history
  • Loading branch information
cdump committed Jun 5, 2024
1 parent 20b60d5 commit 20dc657
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 9 deletions.
2 changes: 2 additions & 0 deletions benchmark/providers/etherscan/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1

FROM python:3.12-slim
WORKDIR /app
RUN pip3 install pycryptodome==3.19
Expand Down
11 changes: 8 additions & 3 deletions benchmark/providers/evm-hound-rs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM rust:1.76
# syntax=docker/dockerfile:1

FROM rust:1.78
WORKDIR /app
COPY . .
RUN cargo install --path .
ENTRYPOINT ["main"]
RUN --mount=type=cache,target=./.cargo \
--mount=type=cache,target=./target \
CARGO_HOME=/app/.cargo \
cargo install --locked --root=. --path .
ENTRYPOINT ["./bin/main"]
4 changes: 3 additions & 1 deletion benchmark/providers/evmole-js/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM node:21
# syntax=docker/dockerfile:1

FROM node:22
WORKDIR /app
COPY main.mjs /app
COPY js /app/js
Expand Down
2 changes: 2 additions & 0 deletions benchmark/providers/evmole-py/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1

FROM python:3.12-slim
WORKDIR /app
COPY main.py /app
Expand Down
2 changes: 1 addition & 1 deletion benchmark/providers/evmole-rs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM rust:1.76
FROM rust:1.78
WORKDIR /app
COPY . .
RUN --mount=type=cache,target=./.cargo \
Expand Down
11 changes: 8 additions & 3 deletions benchmark/providers/heimdall-rs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM rust:1.76
# syntax=docker/dockerfile:1

FROM rust:1.78
WORKDIR /app
COPY . .
RUN cargo install --path .
ENTRYPOINT ["main"]
RUN --mount=type=cache,target=./.cargo \
--mount=type=cache,target=./target \
CARGO_HOME=/app/.cargo \
cargo install --locked --root=. --path .
ENTRYPOINT ["./bin/main"]
2 changes: 2 additions & 0 deletions benchmark/providers/simple/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1

FROM python:3.12-slim
WORKDIR /app
COPY main.py /app
Expand Down
4 changes: 3 additions & 1 deletion benchmark/providers/whatsabi/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM node:21
# syntax=docker/dockerfile:1

FROM node:22
WORKDIR /app
RUN npm install @shazow/whatsabi@0.11.0
COPY main.mjs /app
Expand Down

0 comments on commit 20dc657

Please sign in to comment.