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:
parent
7f37e47934
commit
aa3db67048
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue