2024-05-07 04:18:02 +00:00
|
|
|
# TODO: Make work for arm64/Apple Silicon
|
2024-07-09 08:36:33 +00:00
|
|
|
FROM ghcr.io/foundry-rs/foundry:nightly-c4a984fbf2c48b793c8cd53af84f56009dd1070c
|
2024-05-07 04:18:02 +00:00
|
|
|
|
|
|
|
RUN apk update
|
|
|
|
|
|
|
|
# Install node (use edge repo to get latest version)
|
|
|
|
RUN apk add --update --no-cache curl wget bash git busybox jq openssl \
|
|
|
|
&& apk add nodejs --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main --allow-untrusted \
|
|
|
|
&& apk add npm \
|
|
|
|
&& node -v
|
|
|
|
|
|
|
|
# Add corepack for yarn and pnpm
|
|
|
|
RUN npm install -g corepack && corepack enable \
|
|
|
|
&& yarn --version
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# Copy optimism repo contents
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN echo "Building optimism" && \
|
|
|
|
pnpm install && pnpm build
|
|
|
|
|
|
|
|
WORKDIR /app/packages/contracts-bedrock
|