From a520b4129ae6b2baa6c37f3fa5ee5f5fa644b66f Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Fri, 8 Nov 2024 18:23:42 +0000 Subject: [PATCH] fix dockerfile --- .github/workflows/push-price-pusher-image.yml | 5 +---- Dockerfile.node | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push-price-pusher-image.yml b/.github/workflows/push-price-pusher-image.yml index f0806df32d..eb99ff5a9b 100644 --- a/.github/workflows/push-price-pusher-image.yml +++ b/.github/workflows/push-price-pusher-image.yml @@ -1,8 +1,6 @@ name: Build and Push Price Pusher Image on: - push: - tags: - - pyth-price-pusher-v* + pull: workflow_dispatch: inputs: dispatch_description: @@ -40,7 +38,6 @@ jobs: id: ecr_login - run: | DOCKER_BUILDKIT=1 docker build --build-arg package="@pythnetwork/price-pusher" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.node . - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG env: ECR_REGISTRY: public.ecr.aws ECR_REPOSITORY: pyth-network/xc-price-pusher diff --git a/Dockerfile.node b/Dockerfile.node index bcc1d6e25e..0ba4e35015 100644 --- a/Dockerfile.node +++ b/Dockerfile.node @@ -2,7 +2,7 @@ FROM node:20.17.0-slim@sha256:2394e403d45a644e41ac2a15b6f843a7d4a99ad24be48c2798 WORKDIR /usr/src/pyth ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" -RUN apt-get update && apt-get install -y git python3 make gcc g++ && corepack enable +RUN apt-get update && apt-get install -y git python3 make gcc g++ curl && corepack enable COPY ./ . RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile