From aa3db67048737cedf80bd9b39f2942123d853f73 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sat, 14 Feb 2026 21:23:18 -0700 Subject: [PATCH] Fix EncryptID Docker build to include encryptid-sdk dependency Build context changed to parent directory so the encryptid-sdk (referenced as file:../encryptid-sdk) is accessible during build. Co-Authored-By: Claude Opus 4.6 --- Dockerfile.encryptid | 14 +++++++++----- docker-compose.encryptid.yml | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Dockerfile.encryptid b/Dockerfile.encryptid index 041bdcd..2136768 100644 --- a/Dockerfile.encryptid +++ b/Dockerfile.encryptid @@ -6,16 +6,20 @@ FROM oven/bun:1.1 AS builder WORKDIR /app -# Copy package files -COPY package.json bun.lockb* ./ +# Copy package files and encryptid-sdk (build context is parent dir) +COPY rspace-online/package.json rspace-online/bun.lockb* ./ +COPY encryptid-sdk /encryptid-sdk/ + +# Rewrite file: dependency to absolute path for Docker build +RUN sed -i 's|"file:../encryptid-sdk"|"file:/encryptid-sdk"|' package.json # Install dependencies (including postgres) RUN bun install --frozen-lockfile || bun install # Copy source -COPY src/encryptid ./src/encryptid -COPY public ./public -COPY tsconfig.json ./ +COPY rspace-online/src/encryptid ./src/encryptid +COPY rspace-online/public ./public +COPY rspace-online/tsconfig.json ./ # Build client-side modules for browser RUN bun build ./src/encryptid/index.ts --outdir=./src/encryptid/dist --target=browser --minify diff --git a/docker-compose.encryptid.yml b/docker-compose.encryptid.yml index 11c9ab1..6a8827f 100644 --- a/docker-compose.encryptid.yml +++ b/docker-compose.encryptid.yml @@ -4,8 +4,8 @@ services: encryptid: build: - context: . - dockerfile: Dockerfile.encryptid + context: .. + dockerfile: rspace-online/Dockerfile.encryptid container_name: encryptid restart: unless-stopped depends_on: