Commit cb7e3ae7 authored by Mark Tyneway's avatar Mark Tyneway Committed by Kelvin Fichter

ops: add .git folder to docker setup

This allows scripts that depend on the git hash
at build/runtime to access it.
parent 0272a536
.git
.github
node_modules
......
......@@ -20,6 +20,7 @@ COPY --from=builder /optimism/packages/contracts/dist ./dist
COPY --from=builder /optimism/packages/contracts/*.json ./
COPY --from=builder /optimism/packages/contracts/node_modules ./node_modules
COPY --from=builder /optimism/packages/contracts/artifacts ./artifacts
COPY --from=builder /optimism/.git ./.git
# get non-build artifacts from the host
COPY packages/contracts/bin ./bin
......
......@@ -22,6 +22,7 @@ FROM node as builder
# note: this approach can be a bit unhandy to maintain, but it allows
# us to cache the installation steps
WORKDIR /optimism
COPY .git ./.git
COPY *.json yarn.lock ./
COPY packages/core-utils/package.json ./packages/core-utils/package.json
COPY packages/common-ts/package.json ./packages/common-ts/package.json
......@@ -45,6 +46,7 @@ WORKDIR /optimism
COPY --from=builder /optimism/node_modules ./node_modules
COPY --from=builder /optimism/packages ./packages
COPY --from=builder /optimism/integration-tests ./integration-tests
COPY --from=builder /optimism/.git ./.git
# the following steps are cheap
COPY *.json yarn.lock ./
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment