Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile.guardian-coordinator
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ FROM oven/bun:1.3.14-alpine AS runtime
WORKDIR /app
ENV NODE_ENV=production

RUN apk upgrade --no-cache

COPY package.json bun.lock ./
COPY packages/guardian/package.json packages/guardian/package.json
COPY packages/guardian-defaults/package.json packages/guardian-defaults/package.json
COPY packages/guardian-coordinator/package.json packages/guardian-coordinator/package.json
COPY packages/guardian-test-fixtures/package.json packages/guardian-test-fixtures/package.json
RUN bun install --frozen-lockfile --production
RUN bun install --frozen-lockfile --production --filter @3flabs/guardian-coordinator

COPY --from=build /app/packages/guardian/dist packages/guardian/dist
COPY --from=build /app/packages/guardian-defaults/dist packages/guardian-defaults/dist
COPY --from=build /app/packages/guardian-coordinator/dist packages/guardian-coordinator/dist

USER bun
USER 1000:1000
CMD ["bun", "packages/guardian-coordinator/dist/cli.js"]
22 changes: 13 additions & 9 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"type": "module",
"packageManager": "bun@1.3.14",
"workspaces": ["packages/*"],
"overrides": {
"brace-expansion": "5.0.8",
"elysia": "1.4.29",
"tar": "7.5.19",
"ws": "8.21.1"
},
"scripts": {
"build": "bun run --cwd packages/guardian build && bun run --cwd packages/guardian-defaults build && bun run --cwd packages/guardian-coordinator build",
"test": "bun run --cwd packages/guardian test && bun run --cwd packages/guardian-defaults test && bun run --cwd packages/guardian-coordinator test",
Expand Down