Fix Docker build: use parent context for encryptid-sdk

The @encryptid/sdk dependency uses file:../encryptid-sdk which
requires the build context to include the sibling SDK directory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-02-14 19:23:08 -07:00
parent 333a11856e
commit bb854e252f
3 changed files with 35 additions and 3 deletions

View File

@ -6,14 +6,17 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
# Dependencies stage
FROM base AS deps
WORKDIR /app
COPY package.json pnpm-lock.yaml* ./
COPY rfunds-online/package.json rfunds-online/pnpm-lock.yaml* ./
# Copy local SDK dependency (package.json references file:../encryptid-sdk)
COPY encryptid-sdk /encryptid-sdk/
RUN pnpm install --frozen-lockfile || pnpm install
# Build stage
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
COPY --from=deps /encryptid-sdk /encryptid-sdk
COPY rfunds-online/ .
RUN pnpm build
# Production stage

View File

@ -1,6 +1,8 @@
services:
rfunds-online:
build: .
build:
context: ..
dockerfile: rfunds-online/Dockerfile
restart: unless-stopped
labels:
- "traefik.enable=true"

View File

@ -8,6 +8,9 @@ importers:
.:
dependencies:
'@encryptid/sdk':
specifier: file:../encryptid-sdk
version: file:../encryptid-sdk(next@14.2.35(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)
'@xyflow/react':
specifier: ^12.10.0
version: 12.10.0(@types/react@18.3.28)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@ -55,6 +58,17 @@ packages:
resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
engines: {node: '>=10'}
'@encryptid/sdk@file:../encryptid-sdk':
resolution: {directory: ../encryptid-sdk, type: directory}
peerDependencies:
next: '>=14.0.0'
react: '>=18.0.0'
peerDependenciesMeta:
next:
optional: true
react:
optional: true
'@jridgewell/gen-mapping@0.3.13':
resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
@ -326,6 +340,10 @@ packages:
resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}
engines: {node: '>= 0.4'}
hono@4.11.9:
resolution: {integrity: sha512-Eaw2YTGM6WOxA6CXbckaEvslr2Ne4NFsKrvc0v97JD5awbmeBLO5w9Ho9L9kmKonrwF9RJlW6BxT1PVv/agBHQ==}
engines: {node: '>=16.9.0'}
is-binary-path@2.1.0:
resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
engines: {node: '>=8'}
@ -630,6 +648,13 @@ snapshots:
'@alloc/quick-lru@5.2.0': {}
'@encryptid/sdk@file:../encryptid-sdk(next@14.2.35(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)':
dependencies:
hono: 4.11.9
optionalDependencies:
next: 14.2.35(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
react: 18.3.1
'@jridgewell/gen-mapping@0.3.13':
dependencies:
'@jridgewell/sourcemap-codec': 1.5.5
@ -879,6 +904,8 @@ snapshots:
dependencies:
function-bind: 1.1.2
hono@4.11.9: {}
is-binary-path@2.1.0:
dependencies:
binary-extensions: 2.3.0