Skip to content

Commit

Permalink
Feat/optimise dockerfile (#120)
Browse files Browse the repository at this point in the history
optimise dockerfile
  • Loading branch information
allnil authored Dec 5, 2024
1 parent facd395 commit f08e666
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ RUN cargo chef cook --profile $BUILD_PROFILE --features "$FEATURES" --recipe-pat

# Build application
COPY . .
RUN cd /app/wvm-apps/wvm-exexed
WORKDIR /app/wvm-apps/wvm-exexed
RUN cargo build --profile $BUILD_PROFILE --features "$FEATURES" --bin reth
RUN cargo build --profile $BUILD_PROFILE --features "$FEATURES" --locked --bin reth -p wvm-exexed

# ARG is not resolved in COPY so we have to hack around it by copying the
# binary to a temporary location
Expand All @@ -44,9 +42,6 @@ RUN cp /app/target/$BUILD_PROFILE/reth /app/reth
FROM ubuntu AS runtime
WORKDIR /app

# Install ca-certificates
RUN apt-get update && apt-get install -y ca-certificates

# Copy reth over from the build stage
COPY --from=builder /app/reth /usr/local/bin

Expand Down

0 comments on commit f08e666

Please sign in to comment.