A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
feat: Drop corepack dep in prod and allow running as non-root. Fixes #606
Mohamed Bassem169e14d35dad
diff --git a/docker/Dockerfile b/docker/Dockerfileindex 40e09c13..54e337f5 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -40,14 +40,9 @@ FROM node:22-alpine AS aio_builderLABEL org.opencontainers.image.source="https://github.com/karakeep-app/karakeep"WORKDIR /app-# https://github.com/karakeep-app/karakeep/issues/967-RUN npm install -g [email protected]-ARG SERVER_VERSION=nightlyENV SERVER_VERSION=${SERVER_VERSION}-USER root-ENV PORT 3000ENV HOSTNAME "0.0.0.0"EXPOSE 3000@@ -100,7 +95,8 @@ COPY --from=base --chown=node:node /app/apps/web/.next/static ./apps/web/.next/s# Prepare the workers app######################COPY --from=base /prod/workers /app/apps/workers-RUN corepack enable && corepack pack++RUN npm install -g tsxENTRYPOINT ["/init"]diff --git a/docker/root/etc/s6-overlay/s6-rc.d/svc-workers/run b/docker/root/etc/s6-overlay/s6-rc.d/svc-workers/runindex 249b8a52..b190238a 100644--- a/docker/root/etc/s6-overlay/s6-rc.d/svc-workers/run+++ b/docker/root/etc/s6-overlay/s6-rc.d/svc-workers/run@@ -2,4 +2,4 @@# shellcheck shell=bashcd /app/apps/workers;-exec pnpm run start:prod;+exec tsx index.ts