Skip to content

Commit 0f580da

Browse files
committed
fix(op-program): clean up dockerfile inline docs
1 parent c57201b commit 0f580da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

op-program/Dockerfile.repro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ ARG OP_PROGRAM_VERSION=v0.0.0
2626

2727
ARG TARGETOS TARGETARCH
2828

29+
# Build the cannon, op-program, and op-program-client.elf binaries.
2930
RUN --mount=type=cache,target=/root/.cache/go-build cd cannon && make cannon \
3031
GOOS=$TARGETOS GOARCH=$TARGETARCH GITCOMMIT=$GIT_COMMIT GITDATE=$GIT_DATE VERSION="$CANNON_VERSION"
3132
RUN --mount=type=cache,target=/root/.cache/go-build cd op-program && make op-program-host \
@@ -36,13 +37,12 @@ RUN --mount=type=cache,target=/root/.cache/go-build cd op-program && make op-pro
3637
# Run the op-program-client.elf binary directly through cannon's load-elf subcommand.
3738
RUN /app/cannon/bin/cannon load-elf --path /app/op-program/bin/op-program-client.elf --out /app/op-program/bin/prestate.json --meta ""
3839

39-
# Generate the prestate proof.
40+
# Generate the prestate proof containing the absolute pre-state hash.
4041
RUN /app/cannon/bin/cannon run --proof-at '=0' --stop-at '=1' --input /app/op-program/bin/prestate.json --meta "" --proof-fmt '/app/op-program/bin/%d.json' --output ""
4142
RUN mv /app/op-program/bin/0.json /app/op-program/bin/prestate-proof.json
4243

43-
# Export the prestate.json file to the specified output location.
44-
# The output location can be overridden by setting the target's output.
45-
# Additionally, writing files to host requires buildkit to be enabled.
44+
# Exports files to the specified output location.
45+
# Writing files to host requires buildkit to be enabled.
4646
# e.g. `BUILDKIT=1 docker build ...`
4747
FROM scratch AS export-stage
4848
COPY --from=builder /app/op-program/bin/op-program .

0 commit comments

Comments
 (0)