Skip to content

Commit

Permalink
I remember why this was needed now.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielye committed Nov 29, 2023
1 parent 3b58a65 commit d91e5c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions yarn-project/aztec-sandbox/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project AS yarn-project

# Need new arch specific image.
FROM node:18-alpine as builder
COPY --from=yarn-project /usr/src /usr/src
ARG COMMIT_TAG=""

# Update pxe version if COMMIT_TAG has been used.
Expand All @@ -19,9 +22,9 @@ RUN yarn workspaces focus --production && yarn cache clean && rm -rf ../**/src

# Create final, arch specific, minimal size image.
FROM node:18-alpine
COPY --from=yarn-project /usr/src/yarn-project /usr/src/yarn-project
COPY --from=yarn-project /usr/src/barretenberg/ts/package /usr/src/barretenberg/ts/package
COPY --from=yarn-project /usr/src/noir/packages /usr/src/noir/packages
COPY --from=builder /usr/src/yarn-project /usr/src/yarn-project
COPY --from=builder /usr/src/barretenberg/ts/package /usr/src/barretenberg/ts/package
COPY --from=builder /usr/src/noir/packages /usr/src/noir/packages
# Just until weird source-resolver bug fixed.
COPY --from=yarn-project /usr/src/noir/compiler /usr/src/noir/compiler
WORKDIR /usr/src/yarn-project/aztec-sandbox
Expand Down
9 changes: 6 additions & 3 deletions yarn-project/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project AS yarn-project

# Need new arch specific image.
FROM node:18-alpine as builder
COPY --from=yarn-project /usr/src /usr/src
ARG COMMIT_TAG=""

WORKDIR /usr/src/yarn-project/cli
Expand All @@ -12,9 +15,9 @@ RUN yarn workspaces focus --production && yarn cache clean && rm -rf ../**/src

# Create final, arch specific, minimal size image.
FROM node:18-alpine
COPY --from=yarn-project /usr/src/yarn-project /usr/src/yarn-project
COPY --from=yarn-project /usr/src/barretenberg/ts/package /usr/src/barretenberg/ts/package
COPY --from=yarn-project /usr/src/noir/packages /usr/src/noir/packages
COPY --from=builder /usr/src/yarn-project /usr/src/yarn-project
COPY --from=builder /usr/src/barretenberg/ts/package /usr/src/barretenberg/ts/package
COPY --from=builder /usr/src/noir/packages /usr/src/noir/packages

ENV XDG_CACHE_HOME /cache
RUN mkdir /cache && chmod 777 /cache
Expand Down

0 comments on commit d91e5c7

Please sign in to comment.