aboutsummaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-01-12 17:47:42 +0000
committerMohamed Bassem <me@mbassem.com>2025-01-12 17:47:42 +0000
commitc5298cf4b43795c0c261922ef0ad0f20245be4d5 (patch)
tree6240540199e22388493228dde71d645425580521 /docker/Dockerfile
parentb6293d118e7545b81e216073e66cd54c5b1a0b00 (diff)
downloadkarakeep-c5298cf4b43795c0c261922ef0ad0f20245be4d5.tar.zst
build: Bake a default NEXTAUTH_URL_INTERNAL in the docker image
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 8fc3997c..5cd35020 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -12,7 +12,7 @@ RUN apk add --no-cache libc6-compat make g++ py3-pip linux-headers
COPY . .
ENV NEXT_TELEMETRY_DISABLED 1
ENV PUPPETEER_SKIP_DOWNLOAD true
-RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
+RUN pnpm install --frozen-lockfile
# Build the db migration script
RUN cd packages/db && \
@@ -24,7 +24,7 @@ RUN cd packages/db && \
RUN (cd apps/web && pnpm exec next build --experimental-build-mode compile)
# Build the worker code
-RUN --mount=type=cache,id=pnpm_workers,target=/pnpm/store pnpm deploy --node-linker=isolated --filter @hoarder/workers --prod /prod/workers
+RUN pnpm deploy --node-linker=isolated --filter @hoarder/workers --prod /prod/workers
# Build the cli
RUN (cd apps/cli && pnpm build)
@@ -75,6 +75,7 @@ RUN apk add --no-cache monolith yt-dlp
ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1
+ENV NEXTAUTH_URL_INTERNAL=http://localhost:${PORT}
COPY --from=base --chown=node:node /app/apps/web/.next/standalone ./
COPY --from=base /app/apps/web/public ./apps/web/public