From 6e94c5492fce7f06bef5e44ce0c7570b3a91d05e Mon Sep 17 00:00:00 2001 From: Anders Sparrevohn Date: Tue, 23 Aug 2022 22:34:08 +0200 Subject: [PATCH] Run Docker builder step on build platform --- Dockerfile | 5 +++-- prisma/schema.prisma | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a72236805..eaf857fe5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-slim as builder +FROM --platform=$BUILDPLATFORM node:16-slim as builder # Build application and add additional files WORKDIR /ghostfolio @@ -9,6 +9,7 @@ COPY ./CHANGELOG.md CHANGELOG.md COPY ./LICENSE LICENSE COPY ./package.json package.json COPY ./yarn.lock yarn.lock +COPY ./.yarnrc .yarnrc COPY ./prisma/schema.prisma prisma/schema.prisma RUN apt update && apt install -y \ @@ -18,7 +19,7 @@ RUN apt update && apt install -y \ openssl \ python3 \ && rm -rf /var/lib/apt/lists/* -RUN yarn install --network-timeout 1000000 +RUN yarn install # See https://github.com/nrwl/nx/issues/6586 for further details COPY ./decorate-angular-cli.js decorate-angular-cli.js diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 6009f4544..c8025652c 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1,7 +1,7 @@ generator client { provider = "prisma-client-js" previewFeatures = [] - binaryTargets = ["debian-openssl-1.1.x", "native"] + binaryTargets = ["linux-arm64-openssl-1.1.x", "debian-openssl-1.1.x", "native"] } datasource db {