From 172df9fd7d0a4670af2db019f80dd8c6c5a64471 Mon Sep 17 00:00:00 2001 From: Preet Parekh Date: Wed, 14 Jun 2023 22:05:25 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Update=20builders?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 2 +- Dockerfile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dfe36da..cef5a34 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: push: true cache-from: type=gha cache-to: type=gha,mode=max - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 tags: | ghcr.io/devfolioco/siwe-oidc:${{ github.event.release.tag_name }} ghcr.io/devfolioco/siwe-oidc:latest diff --git a/Dockerfile b/Dockerfile index bb53479..5b25d9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,9 +14,15 @@ COPY --from=dep_planner /siwe-oidc/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json FROM node:16-alpine as node_builder + +# Reference https://github.com/mhart/alpine-node/issues/27#issuecomment-880663905 +RUN apk add --no-cache --virtual .build-deps alpine-sdk python3 + ENV FORTMATIC_KEY="" ENV INFURA_ID="" ENV PORTIS_ID="" + + ADD --chown=node:node ./static /siwe-oidc/static ADD --chown=node:node ./js/ui /siwe-oidc/js/ui WORKDIR /siwe-oidc/js/ui