2023-03-30 05:18:07 +00:00
|
|
|
FROM cerc/foundry:local
|
2023-03-26 17:18:36 +00:00
|
|
|
|
2023-03-31 05:10:36 +00:00
|
|
|
# Install node (local foundry is a debian based image)
|
2023-03-30 05:18:07 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y curl \
|
|
|
|
&& curl --silent --location https://deb.nodesource.com/setup_16.x | bash - \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y nodejs git busybox jq \
|
|
|
|
&& node -v
|
2023-03-26 17:18:36 +00:00
|
|
|
|
2023-03-30 05:18:07 +00:00
|
|
|
RUN corepack enable \
|
|
|
|
&& yarn --version
|
2023-03-26 17:18:36 +00:00
|
|
|
|
2023-03-30 05:18:07 +00:00
|
|
|
WORKDIR /app
|
2023-03-26 17:18:36 +00:00
|
|
|
|
2023-03-31 05:10:36 +00:00
|
|
|
# Copy optimism repo contents
|
2023-03-30 05:18:07 +00:00
|
|
|
COPY . .
|
2023-03-26 17:18:36 +00:00
|
|
|
|
2023-03-30 05:18:07 +00:00
|
|
|
RUN echo "Building optimism" && \
|
|
|
|
yarn && yarn build
|
2023-03-26 17:18:36 +00:00
|
|
|
|
2023-03-30 05:18:07 +00:00
|
|
|
WORKDIR /app/packages/contracts-bedrock
|