From 9c5c2bab91ca0a11d82261e5f8e7cd51e3b75ea9 Mon Sep 17 00:00:00 2001 From: Philip Liu <12836897+philipliu@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:01:06 -0400 Subject: [PATCH] Fix Dockerfile and remove build step (#151) --- .github/workflows/npm_and_docker_publish.yml | 3 --- Dockerfile | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npm_and_docker_publish.yml b/.github/workflows/npm_and_docker_publish.yml index 52b81c9..9343609 100644 --- a/.github/workflows/npm_and_docker_publish.yml +++ b/.github/workflows/npm_and_docker_publish.yml @@ -34,9 +34,6 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Install Latest npm Package - run: yarn add @stellar/anchor-tests@latest -W - - name: Build and push Docker images uses: docker/build-push-action@v4.0.0 with: diff --git a/Dockerfile b/Dockerfile index 8746a6c..f706f51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ RUN npm install -g typescript && \ WORKDIR /code COPY . . -RUN npm install -g @stellar/anchor-tests +RUN yarn install +RUN yarn build:anchor-tests -ENTRYPOINT ["stellar-anchor-tests"] +ENTRYPOINT ["yarn", "stellar-anchor-tests"]