Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Merge branch 'main' into arm

Andras Bacsaiabaa13fda82f
diff --cc Dockerfile
index 4b7b67b85c,df4614a134..fa19947eb7
--- a/Dockerfile
+++ b/Dockerfile
@@@ -2,25 -3,16 +2,25 @@@ FROM node:16.14.2-alpine as instal
WORKDIR /app
COPY package*.json .
RUN yarn install
-COPY . .
-RUN yarn build
-FROM node:16.14.0-alpine
+FROM node:16.14.2-alpine
+ARG TARGETPLATFORM
+
WORKDIR /app
-LABEL coolify.managed true
+ENV PRISMA_QUERY_ENGINE_BINARY=/app/prisma-engines/query-engine \
+ PRISMA_MIGRATION_ENGINE_BINARY=/app/prisma-engines/migration-engine \
+ PRISMA_INTROSPECTION_ENGINE_BINARY=/app/prisma-engines/introspection-engine \
+ PRISMA_FMT_BINARY=/app/prisma-engines/prisma-fmt \
+ PRISMA_CLI_QUERY_ENGINE_TYPE=binary \
+ PRISMA_CLIENT_ENGINE_TYPE=binary
+
+COPY --from=coollabsio/prisma-engine:latest /prisma-engines/query-engine /prisma-engines/migration-engine /prisma-engines/introspection-engine /prisma-engines/prisma-fmt /app/prisma-engines/
-RUN apk add --no-cache git git-lfs openssh-client curl jq cmake sqlite openssl
+COPY --from=install /app/node_modules ./node_modules
+COPY . .
- RUN apk add --no-cache git openssh-client curl jq sqlite
++RUN apk add --no-cache git git-lfs openssh-client curl jq cmake sqlite openssl
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6
RUN pnpm add -g pnpm
diff --cc package.json
index 922ffc2202,a272908c72..d19791e100
--- a/package.json
+++ b/package.json
@@@ -28,8 -28,9 +28,8 @@@
"devDependencies": {
"@sveltejs/adapter-node": "1.0.0-next.73",
"@sveltejs/kit": "1.0.0-next.303",
- "@types/bcrypt": "5.0.0",
"@types/js-cookie": "3.0.1",
- "@types/js-yaml": "^4.0.5",
+ "@types/js-yaml": "4.0.5",
"@types/node": "17.0.23",
"@types/node-forge": "1.0.1",
"@typescript-eslint/eslint-plugin": "4.31.1",
diff --cc pnpm-lock.yaml
index 29d97a6889,175ba2285f..fca22ec758
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@@ -6,8 -6,9 +6,8 @@@ specifiers
'@sentry/node': 6.19.2
'@sveltejs/adapter-node': 1.0.0-next.73
'@sveltejs/kit': 1.0.0-next.303
- '@types/bcrypt': 5.0.0
'@types/js-cookie': 3.0.1
- '@types/js-yaml': ^4.0.5
+ '@types/js-yaml': 4.0.5
'@types/node': 17.0.23
'@types/node-forge': 1.0.1
'@typescript-eslint/eslint-plugin': 4.31.1