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 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-02-14 21:23:18 -07:00
parent 7f37e47934
commit aa3db67048
2 changed files with 11 additions and 7 deletions

View File

@ -6,16 +6,20 @@ FROM oven/bun:1.1 AS builder
WORKDIR /app WORKDIR /app
# Copy package files # Copy package files and encryptid-sdk (build context is parent dir)
COPY package.json bun.lockb* ./ 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) # Install dependencies (including postgres)
RUN bun install --frozen-lockfile || bun install RUN bun install --frozen-lockfile || bun install
# Copy source # Copy source
COPY src/encryptid ./src/encryptid COPY rspace-online/src/encryptid ./src/encryptid
COPY public ./public COPY rspace-online/public ./public
COPY tsconfig.json ./ COPY rspace-online/tsconfig.json ./
# Build client-side modules for browser # Build client-side modules for browser
RUN bun build ./src/encryptid/index.ts --outdir=./src/encryptid/dist --target=browser --minify RUN bun build ./src/encryptid/index.ts --outdir=./src/encryptid/dist --target=browser --minify

View File

@ -4,8 +4,8 @@
services: services:
encryptid: encryptid:
build: build:
context: . context: ..
dockerfile: Dockerfile.encryptid dockerfile: rspace-online/Dockerfile.encryptid
container_name: encryptid container_name: encryptid
restart: unless-stopped restart: unless-stopped
depends_on: depends_on: