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.

Update dockerfile

Andras Bacsai20ac8f69ea15
diff --git a/Dockerfile b/Dockerfile
index 59ec0df062..0e6a464b21 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,8 +1,10 @@
+ARG PNPM_VERSION=7.11.0
+ARG NPM_VERSION=8.19.1
+ARG TARGETPLATFORM
+
FROM node:18-slim as build
WORKDIR /app
-ARG PNPM_VERSION=7.11.0
-
RUN apt update && apt -y install curl
RUN npm --no-update-notifier --no-fund --global install pnpm@${PNPM_VERSION}
@@ -14,9 +16,6 @@ RUN pnpm build
FROM node:18-slim
WORKDIR /app
ENV NODE_ENV production
-ARG NPM_VERSION=8.19.1
-ARG PNPM_VERSION=7.11.0
-ARG TARGETPLATFORM
RUN apt update && apt -y install --no-install-recommends ca-certificates git git-lfs openssh-client curl jq cmake sqlite3 openssl psmisc python3
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/