build(docker): update container image entrypoint to src/main.ts and copy src workspace

This commit is contained in:
Tyler Gillispie 2026-08-27 20:58:55 -07:00
parent ed70e4d1cd
commit 11d4b80014

View File

@ -19,11 +19,12 @@ COPY deno.json deno.lock* deps.ts ./
COPY server/deno.json ./server/
COPY sdk/deno.json ./sdk/
COPY ui/deno.json ./ui/
COPY src/deno.json ./src/
RUN deno cache deps.ts
# Source code layer
COPY . .
RUN deno cache server/main.ts
RUN deno cache src/main.ts
# Stage 3: Runner
FROM denoland/deno:debian-2.9.4
@ -42,4 +43,5 @@ COPY --from=deno-builder --chown=deno:deno /app ./
EXPOSE 8000
# Added --allow-ffi for Deno.dlopen and --allow-read for dlopen path resolution
CMD ["run", "--allow-net", "--allow-env", "--allow-ffi=./libspire_ffi.so", "--allow-read=.,/var/run/spire/agent.sock", "--unstable-ffi", "server/main.ts"]
CMD ["run", "--allow-net", "--allow-env", "--allow-ffi=./libspire_ffi.so", "--allow-read=.,/var/run/spire/agent.sock", "--unstable-ffi", "src/main.ts"]