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.

Updates

Andras Bacsai823279fb6038
diff --git a/Dockerfile b/Dockerfile
index 28e7e820bc..5c95c5398d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,14 +3,6 @@ WORKDIR /app
COPY package*.json .
RUN yarn install
-
-FROM rust:1.58.1-alpine3.14 as prisma
-WORKDIR /prisma
-ENV RUSTFLAGS="-C target-feature=-crt-static"
-RUN apk --no-cache add openssl direnv git musl-dev openssl-dev build-base perl protoc
-RUN git clone --depth=1 --branch=3.11.x https://github.com/prisma/prisma-engines.git /prisma
-RUN cargo build --release
-
FROM node:16.14.2-alpine
ARG TARGETPLATFORM
@@ -22,7 +14,8 @@ ENV PRISMA_QUERY_ENGINE_BINARY=/app/prisma-engines/query-engine \
PRISMA_FMT_BINARY=/app/prisma-engines/prisma-fmt \
PRISMA_CLI_QUERY_ENGINE_TYPE=binary \
PRISMA_CLIENT_ENGINE_TYPE=binary
-COPY --from=prisma /prisma/target/release/query-engine /prisma/target/release/migration-engine /prisma/target/release/introspection-engine /prisma/target/release/prisma-fmt /app/prisma-engines/
+
+COPY --from=coollabsio/prisma-engine:arm64 /prisma-engines/query-engine /prisma-engines/migration-engine /prisma-engines/introspection-engine /prisma-engines/prisma-fmt /app/prisma-engines/
COPY --from=install /app/node_modules ./node_modules
COPY . .
diff --git a/haproxy-http.Dockerfile b/data/haproxy-http.Dockerfile
similarity index 100%
rename from haproxy-http.Dockerfile
rename to data/haproxy-http.Dockerfile
diff --git a/haproxy-tcp.Dockerfile b/data/haproxy-tcp.Dockerfile
similarity index 100%
rename from haproxy-tcp.Dockerfile
rename to data/haproxy-tcp.Dockerfile
diff --git a/haproxy.Dockerfile b/data/haproxy.Dockerfile
similarity index 100%
rename from haproxy.Dockerfile
rename to data/haproxy.Dockerfile
diff --git a/data/prisma-engine.Dockerfile b/data/prisma-engine.Dockerfile
new file mode 100644
index 0000000000..086472e23d
--- /dev/null
+++ b/data/prisma-engine.Dockerfile
@@ -0,0 +1,10 @@
+FROM rust:1.58.1-alpine3.14 as prisma
+WORKDIR /prisma
+ENV RUSTFLAGS="-C target-feature=-crt-static"
+RUN apk --no-cache add openssl direnv git musl-dev openssl-dev build-base perl protoc
+RUN git clone --depth=1 --branch=3.11.x https://github.com/prisma/prisma-engines.git /prisma
+RUN cargo build --release
+
+FROM alpine
+WORKDIR /prisma-engines
+COPY --from=prisma /prisma/target/release/query-engine /prisma/target/release/migration-engine /prisma/target/release/introspection-engine /prisma/target/release/prisma-fmt /prisma-engines/