Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
chore: Disable pushing/pulling for layer caching in build. (#2517)
Browse files Browse the repository at this point in the history
* There is little gain to pushing and pulling previously built images to
leverage the layer cache, so don't.
* If we want to avoid reinstalling compilers etc we should create better
base images (later)
* Docs doesn't need to build yarn-project anymore as base image already
builds it.
* Use query_manifest dependencies to determine dependents to pull and
tag, rather than sedding Dockerfile.

---------

Co-authored-by: ludamad <[email protected]>
  • Loading branch information
2 people authored and AztecBot committed Sep 27, 2023
1 parent 3f4be9f commit 220b575
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project AS builder
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project
WORKDIR /usr/src
COPY . .
WORKDIR /usr/src/yarn-project
RUN yarn build
WORKDIR /usr/src/docs
RUN yarn && yarn build
10 changes: 10 additions & 0 deletions Dockerfile.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# The build context for docs is the root of the repository.
# Be very specific about what we include.
*

!docs
!l1-contracts/src
!l1-contracts/test
!barretenberg/cpp/src/barretenberg
!circuits/cpp/src
!.release-please-manifest.json

0 comments on commit 220b575

Please sign in to comment.