From 3b7b36c21717eba400184027c49fee69d06e19fe Mon Sep 17 00:00:00 2001 From: Charlie Lye Date: Wed, 4 Oct 2023 12:16:04 +0100 Subject: [PATCH] chore: Remove sandbox base image and force_deploy_build. Generalise in check_rebuild. (#2645) Base image not really needed as build happens in yarn-project and we're just stripping dev deps. force_deploy_build was workaround for ensuring version number is baked into image. We should probably just find a way to correctly invalidate the content hash, but in meantime i've generalised in check_rebuild by checking if the commit tag is set (i.e. deploying) and the dockerfile has an `ARG COMMIT_TAG=` in it, which we know will carry this new version number. --- .circleci/config.yml | 134 +++++++++----------- build-system/scripts/calculate_image_uri | 5 +- build-system/scripts/check_rebuild | 14 +- build-system/scripts/create_ecr_manifest | 24 ++-- build-system/scripts/force_deploy_build | 29 ----- build_manifest.yml | 19 +-- yarn-project/aztec-sandbox/Dockerfile | 10 +- yarn-project/aztec-sandbox/Dockerfile.final | 10 -- yarn-project/pxe/Dockerfile | 7 +- yarn-project/pxe/Dockerfile.final | 10 -- 10 files changed, 98 insertions(+), 164 deletions(-) delete mode 100755 build-system/scripts/force_deploy_build delete mode 100644 yarn-project/aztec-sandbox/Dockerfile.final delete mode 100644 yarn-project/pxe/Dockerfile.final diff --git a/.circleci/config.yml b/.circleci/config.yml index 2515a2e47022..cd068b43e2f2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -417,17 +417,6 @@ jobs: name: Test command: cond_spot_run_container yarn-project 64 test | add_timestamps - aztec-sandbox-base: - machine: - image: ubuntu-2204:2023.07.2 - resource_class: large - steps: - - *checkout - - *setup_env - - run: - name: "Build and test" - command: force_deploy_build aztec-sandbox-base false - aztec-sandbox-x86_64: machine: image: ubuntu-2204:2023.07.2 @@ -437,7 +426,7 @@ jobs: - *setup_env - run: name: "Build and test" - command: force_deploy_build aztec-sandbox false x86_64 + command: build aztec-sandbox false x86_64 aztec-sandbox-arm64: machine: @@ -452,18 +441,7 @@ jobs: # out to eu-west2 despite the image being locally tagged, resulting in unauthorised 401. Weird docker bug? command: | echo "export DOCKER_BUILDKIT=" > $BASH_ENV - force_deploy_build aztec-sandbox false arm64 - - pxe-base: - machine: - image: ubuntu-2204:2023.07.2 - resource_class: large - steps: - - *checkout - - *setup_env - - run: - name: "Build and test" - command: force_deploy_build pxe-base false + build aztec-sandbox false arm64 pxe-x86_64: machine: @@ -474,7 +452,7 @@ jobs: - *setup_env - run: name: "Build and test" - command: force_deploy_build pxe false x86_64 + command: build pxe false x86_64 pxe-arm64: machine: @@ -489,7 +467,7 @@ jobs: # out to eu-west2 despite the image being locally tagged, resulting in unauthorised 401. Weird docker bug? command: | echo "export DOCKER_BUILDKIT=" > $BASH_ENV - force_deploy_build pxe false arm64 + build pxe false arm64 ecr-manifest: machine: @@ -501,8 +479,8 @@ jobs: - run: name: "Create ECR manifest" command: | - create_ecr_manifest aztec-sandbox-base aztec-sandbox x86_64,arm64 - create_ecr_manifest pxe-base pxe x86_64,arm64 + create_ecr_manifest aztec-sandbox x86_64,arm64 + create_ecr_manifest pxe x86_64,arm64 boxes-blank-react: machine: @@ -569,7 +547,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_2_pxes.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-multiple-accounts-1-enc-key: machine: @@ -581,7 +559,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_multiple_accounts_1_enc_key.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-deploy-contract: machine: @@ -593,7 +571,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_deploy_contract.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-lending-contract: machine: @@ -605,7 +583,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_lending_contract.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-token-contract: machine: @@ -617,7 +595,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_token_contract.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-private-airdrop: machine: @@ -629,7 +607,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_private_airdrop.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-private-token-contract: machine: @@ -641,7 +619,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_private_token_contract.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-sandbox-example: machine: @@ -653,7 +631,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_sandbox_example.test.ts ./scripts/docker-compose-e2e-sandbox.yml - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-multi-transfer-contract: machine: @@ -665,7 +643,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_multi_transfer.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-block-building: machine: @@ -677,7 +655,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_block_building.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-nested-contract: machine: @@ -689,7 +667,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_nested_contract.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-non-contract-account: machine: @@ -701,7 +679,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_non_contract_account.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-cross-chain-messaging: machine: @@ -713,7 +691,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_cross_chain_messaging.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-public-cross-chain-messaging: machine: @@ -725,7 +703,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_public_cross_chain_messaging.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-public-to-private-messaging: machine: @@ -737,7 +715,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_public_to_private_messaging.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-account-contracts: machine: @@ -749,7 +727,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_account_contracts.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-escrow-contract: machine: @@ -761,7 +739,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_escrow_contract.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-pending-commitments-contract: machine: @@ -773,7 +751,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_pending_commitments_contract.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-ordering: machine: @@ -785,7 +763,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_ordering.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } uniswap-trade-on-l1-from-l2: machine: @@ -797,7 +775,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local uniswap_trade_on_l1_from_l2.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } integration-archiver-l1-to-l2: machine: @@ -809,7 +787,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local integration_archiver_l1_to_l2.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } integration-l1-publisher: machine: @@ -821,7 +799,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local integration_l1_publisher.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-public-token-contract: machine: @@ -833,7 +811,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_public_token_contract.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-cli: machine: @@ -845,7 +823,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_cli.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-p2p: machine: @@ -857,7 +835,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_p2p_network.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-browser-sandbox: machine: @@ -869,7 +847,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_aztec_js_browser.test.ts ./scripts/docker-compose-e2e-sandbox-browser.yml - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-card-game: machine: @@ -881,7 +859,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local e2e_card_game.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } pxe-sandbox: machine: @@ -893,7 +871,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local pxe_sandbox.test.ts ./scripts/docker-compose-e2e-sandbox.yml - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } cli-docs-sandbox: machine: @@ -905,7 +883,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local cli_docs_sandbox.test.ts ./scripts/docker-compose-e2e-sandbox.yml - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } guides-writing-an-account-contract: machine: @@ -917,7 +895,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local guides/writing_an_account_contract.test.ts - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } guides-dapp-testing: machine: @@ -929,7 +907,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local guides/dapp_testing.test.ts ./scripts/docker-compose-e2e-sandbox.yml - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } guides-sample-dapp: machine: @@ -941,7 +919,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local sample-dapp ./scripts/docker-compose-e2e-sandbox.yml - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } guides-up-quick-start: machine: @@ -953,7 +931,7 @@ jobs: - run: name: "Test" command: cond_run_script end-to-end ./scripts/run_tests_local guides/up_quick_start.test.ts ./scripts/docker-compose-e2e-sandbox.yml - environment: { DEBUG: 'aztec:*' } + environment: { DEBUG: "aztec:*" } e2e-canary-test: machine: @@ -976,7 +954,10 @@ jobs: - run: name: "Benchmark" command: cond_run_script end-to-end ./scripts/run_tests_local benchmarks/bench_publish_rollup.test.ts - environment: { DEBUG: 'aztec:benchmarks:*,aztec:sequencer,aztec:world_state,aztec:merkle_trees' } + environment: + { + DEBUG: "aztec:benchmarks:*,aztec:sequencer,aztec:world_state,aztec:merkle_trees", + } build-docs: machine: @@ -1122,10 +1103,6 @@ deploy_defaults: &deploy_defaults - slack/notify: event: fail branch_pattern: "master" -yarn_project: &yarn_project - requires: - - yarn-project - <<: *defaults e2e_test: &e2e_test requires: - e2e-join @@ -1234,28 +1211,35 @@ workflows: - yarn-project <<: *defaults - - end-to-end: *yarn_project - - aztec-sandbox-base: *yarn_project - - pxe-base: *yarn_project - - canary: *yarn_project - - build-docs: *yarn_project + - end-to-end: + requires: + - yarn-project + <<: *defaults + - canary: + requires: + - yarn-project + <<: *defaults + - build-docs: + requires: + - yarn-project + <<: *defaults - aztec-sandbox-x86_64: requires: - - aztec-sandbox-base + - yarn-project <<: *defaults - aztec-sandbox-arm64: requires: - - aztec-sandbox-base + - yarn-project <<: *defaults - pxe-x86_64: requires: - - pxe-base + - yarn-project <<: *defaults - pxe-arm64: requires: - - pxe-base + - yarn-project <<: *defaults - ecr-manifest: diff --git a/build-system/scripts/calculate_image_uri b/build-system/scripts/calculate_image_uri index 38038a883198..bb276ed6187c 100755 --- a/build-system/scripts/calculate_image_uri +++ b/build-system/scripts/calculate_image_uri @@ -3,8 +3,5 @@ set -eu REPOSITORY=$1 -# Assume we might be calling this directly without build system in path -export ROOT_PATH=$(git rev-parse --show-toplevel) -export PATH="$PATH:$ROOT_PATH/build-system/scripts:$ROOT_PATH/build-system/bin" CONTENT_HASH=$(calculate_content_hash $REPOSITORY) -echo "278380418400.dkr.ecr.us-east-2.amazonaws.com/$REPOSITORY:cache-$CONTENT_HASH" +echo "$ECR_URL/$REPOSITORY:cache-$CONTENT_HASH" diff --git a/build-system/scripts/check_rebuild b/build-system/scripts/check_rebuild index 22d351b1575c..6e4e4b3384c5 100755 --- a/build-system/scripts/check_rebuild +++ b/build-system/scripts/check_rebuild @@ -13,8 +13,18 @@ REPOSITORY=$2 [[ "$COMMIT_MESSAGE" == *"[ci rebuild $REPOSITORY]"* ]] && exit 1 [[ "$COMMIT_MESSAGE" == *"[ci rebuild]"* ]] && exit 1 +COMMIT_TAG_VERSION=$(extract_tag_version $REPOSITORY) +DOCKERFILE=$(query_manifest dockerfile $REPOSITORY) + +# If we are deploying, and our Dockerfile uses the COMMIT_TAG arg, we need to rebuild to ensure the latest version +# number is baked into the image. +# TODO: This should probably be properly handled by e.g. release-please bumping the version number as part of its PR +# which would invalidate the content hash, rather than us using Dockerfile ARGS. +if [ -n "$COMMIT_TAG_VERSION" ] && grep -qE "^ARG COMMIT_TAG=" $DOCKERFILE; then + exit 1 +fi + +# If the image doesn't exist, we need to rebuild. if ! image_exists $REPOSITORY $TAG; then exit 1 -else - exit 0 fi diff --git a/build-system/scripts/create_ecr_manifest b/build-system/scripts/create_ecr_manifest index a020ddcfd2a6..44d887a190f2 100755 --- a/build-system/scripts/create_ecr_manifest +++ b/build-system/scripts/create_ecr_manifest @@ -3,24 +3,21 @@ # 1. Logs into ECR and ensures we have the given repository # 2. Computes the image uri of the cached images for the given repository given the list of architectures # 3. Creates a manifest list using a platform agnositc image uri, adds each image to it -# 4. Pushes the manifest list +# 4. Pushes the manifest list [ -n "${BUILD_SYSTEM_DEBUG:-}" ] && set -x # conditionally trace -set -e +set -eu REPOSITORY=$1 -FINAL_IMAGE_NAME=$2 -ARCH_LIST=$3 +ARCH_LIST=$2 # Ensure ECR repository exists. retry ensure_repo $REPOSITORY $ECR_REGION refresh_lifecycle -CONTENT_HASH=$(calculate_content_hash $REPOSITORY) -echo "Content hash: $CONTENT_HASH" +IMAGE_URI=$(calculate_image_uri $REPOSITORY) +echo "Image URI: $IMAGE_URI" -FINAL=$ECR_URL/$FINAL_IMAGE_NAME:cache-$CONTENT_HASH - -echo "Creating manifest list $FINAL..." +echo "Creating manifest list..." export DOCKER_CLI_EXPERIMENTAL=enabled @@ -28,12 +25,11 @@ OLD_IFS=$IFS IFS=',' for A in $ARCH_LIST do - IMAGE=$ECR_URL/$FINAL_IMAGE_NAME:cache-$CONTENT_HASH-$A - echo "Adding image $IMAGE to manifest list" - docker manifest create $FINAL \ - --amend $IMAGE + ARCH_IMAGE=$IMAGE_URI-$A + echo "Adding image $ARCH_IMAGE to manifest list." + docker manifest create $IMAGE_URI --amend $ARCH_IMAGE done IFS=$OLD_IFS unset OLD_IFS -docker manifest push --purge $FINAL +docker manifest push --purge $IMAGE_URI diff --git a/build-system/scripts/force_deploy_build b/build-system/scripts/force_deploy_build deleted file mode 100755 index 894efd48acbf..000000000000 --- a/build-system/scripts/force_deploy_build +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -# -# This script forces a build if we're in a deployment run, otherwise runs `build` as usual -# -# usage: ./deploy_force_build -# example: ./deploy_force_build aztec-sandbox true -[ -n "${BUILD_SYSTEM_DEBUG:-}" ] && set -x # conditionally trace -set -e - -REPOSITORY=$1 -shift -FORCE_BUILD=$1 -shift - -# if FORCE_BUILD is already set, just continue with it -if [[ $FORCE_BUILD == 'true' ]]; then - build $REPOSITORY true $@ - exit 0 -fi - -COMMIT_TAG_VERSION=$(extract_tag_version $REPOSITORY false) - -if [ -z "$COMMIT_TAG_VERSION" ]; then - # Not a version tag, build normally - build $REPOSITORY false $@ -else - # Force build - build $REPOSITORY true $@ -fi diff --git a/build_manifest.yml b/build_manifest.yml index e62123a68888..54b6c81fcc9e 100644 --- a/build_manifest.yml +++ b/build_manifest.yml @@ -107,32 +107,17 @@ yarn-project: - yarn-project-base - noir-contracts-build -aztec-sandbox-base: - buildDir: yarn-project - projectDir: yarn-project/aztec-sandbox - dependencies: - - yarn-project - aztec-sandbox: buildDir: yarn-project projectDir: yarn-project/aztec-sandbox - dockerfile: Dockerfile.final - dependencies: - - aztec-sandbox-base - -pxe-base: - buildDir: yarn-project - projectDir: yarn-project/pxe - dockerfile: Dockerfile dependencies: - yarn-project pxe: buildDir: yarn-project projectDir: yarn-project/pxe - dockerfile: Dockerfile.final dependencies: - - pxe-base + - yarn-project boxes-blank-react: buildDir: yarn-project @@ -182,4 +167,4 @@ docs: - ^.*/noir-version.json$ - ^.*.nr$ dependencies: - - yarn-project \ No newline at end of file + - yarn-project diff --git a/yarn-project/aztec-sandbox/Dockerfile b/yarn-project/aztec-sandbox/Dockerfile index 3b669677b808..037d0a71e8da 100644 --- a/yarn-project/aztec-sandbox/Dockerfile +++ b/yarn-project/aztec-sandbox/Dockerfile @@ -1,13 +1,19 @@ -FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project AS builder +FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project AS yarn-project ARG COMMIT_TAG="" -# Update pxe version if COMMIT_TAG has been used +# Start a new image as we need arch specific. +FROM node:18-alpine as builder +RUN apk add jq +COPY --from=yarn-project /usr/src/ /usr/src/ + +# Update pxe version if COMMIT_TAG has been used. WORKDIR /usr/src/yarn-project/pxe RUN if [[ -n "${COMMIT_TAG}" ]]; then \ jq --arg v ${COMMIT_TAG} '.version = $v' package.json > _temp && mv _temp package.json; \ fi +# Update sandbox version if COMMIT_TAG has been used. WORKDIR /usr/src/yarn-project/aztec-sandbox RUN if [[ -n "${COMMIT_TAG}" ]]; then \ jq --arg v ${COMMIT_TAG} '.version = $v' package.json > _temp && mv _temp package.json; \ diff --git a/yarn-project/aztec-sandbox/Dockerfile.final b/yarn-project/aztec-sandbox/Dockerfile.final deleted file mode 100644 index 5ef50e268e4d..000000000000 --- a/yarn-project/aztec-sandbox/Dockerfile.final +++ /dev/null @@ -1,10 +0,0 @@ -FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/aztec-sandbox-base AS builder - -FROM node:18-alpine - -COPY --from=builder /usr/src/ /usr/src/ -WORKDIR /usr/src/yarn-project/aztec-sandbox - -ENTRYPOINT ["yarn"] -CMD [ "start" ] -EXPOSE 8079 8080 \ No newline at end of file diff --git a/yarn-project/pxe/Dockerfile b/yarn-project/pxe/Dockerfile index 49503a0d0d30..299a0fade855 100644 --- a/yarn-project/pxe/Dockerfile +++ b/yarn-project/pxe/Dockerfile @@ -1,7 +1,12 @@ -FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project AS builder +FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/yarn-project AS yarn-project ARG COMMIT_TAG="" +# Start a new image as we need arch specific. +FROM node:18-alpine as builder +RUN apk add jq +COPY --from=yarn-project /usr/src/ /usr/src/ + # Update pxe version if COMMIT_TAG has been used WORKDIR /usr/src/yarn-project/pxe RUN if [[ -n "${COMMIT_TAG}" ]]; then \ diff --git a/yarn-project/pxe/Dockerfile.final b/yarn-project/pxe/Dockerfile.final deleted file mode 100644 index 5f2ac5b817e9..000000000000 --- a/yarn-project/pxe/Dockerfile.final +++ /dev/null @@ -1,10 +0,0 @@ -FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/pxe-base AS builder - -FROM node:18-alpine - -COPY --from=builder /usr/src/ /usr/src/ -WORKDIR /usr/src/yarn-project/pxe - -ENTRYPOINT ["yarn"] -CMD [ "start" ] -EXPOSE 8081