initial commit2
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 9s
CI / Go — node-agent tests (push) Failing after 55s
CI / Go — edge-gateway build (push) Successful in 13s

This commit is contained in:
smueller
2026-06-26 10:45:58 +02:00
parent e37ea87b35
commit 4104daaf75
10 changed files with 145 additions and 50 deletions

15
apps/worker/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:22-alpine AS builder
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate
COPY package.json pnpm-workspace.yaml turbo.json ./
COPY apps/worker/package.json apps/worker/
RUN pnpm install --filter @hexahost/worker...
COPY apps/worker apps/worker
RUN pnpm --filter @hexahost/worker build
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/apps/worker/dist ./dist
COPY --from=builder /app/apps/worker/package.json ./
CMD ["node", "dist/main.js"]