Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

docker changes

Carl-Gerhard Lindesvärd0f5660e8f0f4
diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile
index bd2400ccb..4be2fa2ec 100644
--- a/apps/web/Dockerfile
+++ b/apps/web/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:20-slim AS base
+FROM --platform=linux/amd64 node:20-slim AS base
ARG DATABASE_URL
ENV DATABASE_URL=$DATABASE_URL
@@ -15,7 +15,7 @@ ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
-ARG NODE_VERSION=18
+ARG NODE_VERSION=20
RUN apt update \
&& apt install -y curl \
diff --git a/build_docker b/build_docker
index c81b9ea4f..7f5f03f93 100755
--- a/build_docker
+++ b/build_docker
@@ -4,6 +4,7 @@ docker build \
--build-arg DATABASE_URL="postgresql://[email protected]:5432/mixan?schema=public" \
--build-arg NEXTAUTH_SECRET="secret_sauce" \
--build-arg NEXTAUTH_URL="http://localhost:3000" \
+ -t mixan/app:latest \
-t mixan/app:1.0 \
-f apps/web/Dockerfile \
.
\ No newline at end of file