2024-04-30 10:40:15 +00:00
|
|
|
# TODO: Make work for arm64/Apple Silicon
|
|
|
|
FROM ghcr.io/foundry-rs/foundry:nightly-267e14fab654d9ce955dce64c0eb09f01c8538ee
|
2024-04-26 09:26:39 +00:00
|
|
|
|
2024-04-30 10:40:15 +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 \
|
2024-04-26 09:26:39 +00:00
|
|
|
&& node -v
|
|
|
|
|
2024-04-30 10:40:15 +00:00
|
|
|
# Add corepack for yarn and pnpm
|
|
|
|
RUN npm install -g corepack && corepack enable \
|
2024-04-26 09:26:39 +00:00
|
|
|
&& yarn --version
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# Copy optimism repo contents
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN echo "Building optimism" && \
|
|
|
|
pnpm install && pnpm build
|
|
|
|
|
|
|
|
WORKDIR /app/packages/contracts-bedrock
|