Files
HexaHost-GameCloud/apps/worker/Dockerfile
smueller 4104daaf75
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
initial commit2
2026-06-26 10:45:58 +02:00

16 lines
507 B
Docker

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"]