Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(docker): build @kaneo/permissions in web stages too

Andrej6b8d4cae8153
diff --git a/Dockerfile.kaneo b/Dockerfile.kaneo
index d29c35123..b8eb6acfd 100644
--- a/Dockerfile.kaneo
+++ b/Dockerfile.kaneo
@@ -71,6 +71,9 @@ COPY apps/web ./apps/web
RUN pnpm install --frozen-lockfile
+WORKDIR /app/packages/permissions
+RUN pnpm run build
+
WORKDIR /app/apps/web
RUN pnpm run build
diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile
index 880038887..b06fb491d 100644
--- a/apps/web/Dockerfile
+++ b/apps/web/Dockerfile
@@ -25,6 +25,10 @@ COPY packages/permissions ./packages/permissions
COPY i18n ./i18n
COPY apps/web ./apps/web
+# Build the permissions package first
+WORKDIR /app/packages/permissions
+RUN pnpm run build
+
# Build the application
WORKDIR /app/apps/web
RUN pnpm run build