Skip to content

Commit

Permalink
chore: Do not use intermediate image
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista committed Nov 12, 2024
1 parent 970433c commit 69c808f
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -359,23 +359,6 @@ RUN \
# Install dependencies (fail if we forgot to update the lockfile)
pnpm install --recursive --offline --frozen-lockfile

# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
#
# Image that builds an Aptos node
#
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
FROM $BASE_IMAGE AS node-aptos-local-testnet-builder

# This stage only exists so that we can reuse the docker layer cache
# when providing $BASE_IMAGE
#
# Docker does not allow COPY --from=${ARG} syntax so we create this stage
# using the $BASE_IMAGE ARG and then copy from it to node-aptos-local-testnet

# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
Expand All @@ -390,7 +373,7 @@ FROM machine AS node-aptos-local-testnet
ENV PATH="/root/.aptos/bin:$PATH"

# Get aptos CLI
COPY --from=node-aptos-local-testnet-builder /root/.aptos/bin /root/.aptos/bin
COPY --from=aptos /root/.aptos/bin /root/.aptos/bin

# We'll provide a default healthcheck by asking for the chain information
HEALTHCHECK --interval=2s --retries=20 CMD curl -f http://0.0.0.0:8080/v1 || exit 1
Expand Down

0 comments on commit 69c808f

Please sign in to comment.