Browse Source

Run Docker builder step on build platform

pull/1134/head
Anders Sparrevohn 3 years ago
parent
commit
6e94c5492f
  1. 5
      Dockerfile
  2. 2
      prisma/schema.prisma

5
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

2
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 {

Loading…
Cancel
Save