Skip to content

Commit

Permalink
Merge pull request #80 from ethereum-optimism/aj/docker-binary-location
Browse files Browse the repository at this point in the history
Put asterisc executable on the default PATH in docker image.
  • Loading branch information
ajsutton authored Sep 10, 2024
2 parents a0c33d0 + 73ed84e commit 636210a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile.release
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
FROM golang:1.21.1-alpine3.18 AS builder
WORKDIR /build
ARG ASTERISC_TAG

# Copy the context into the container
ADD . .

# Install deps
RUN apk add --no-cache git make bash

# Clone and build Asterisc @ `ASTERISC_TAG`
RUN make && \
cp rvgo/bin/asterisc /asterisc-bin
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build make

FROM alpine:3.18 AS export

RUN apk add --no-cache bash
SHELL ["/bin/bash", "-c"]

COPY --from=builder /asterisc-bin /asterisc-bin
COPY --from=builder /build/rvgo/bin/asterisc /usr/local/bin/asterisc
ENTRYPOINT ["asterisc"]

0 comments on commit 636210a

Please sign in to comment.