Files
HexaHost-GameCloud/apps/web/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

21 lines
678 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/web/package.json apps/web/
RUN pnpm install --filter @hexahost/web...
COPY apps/web apps/web
RUN pnpm --filter @hexahost/web build
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
ENV WEB_PORT=3000
COPY --from=builder /app/apps/web/dist ./dist
COPY --from=builder /app/apps/web/public ./public
COPY --from=builder /app/apps/web/package.json ./
EXPOSE 3000
HEALTHCHECK --interval=15s --timeout=5s --retries=3 \
CMD wget -qO- http://localhost:3000/api/health || exit 1
CMD ["node", "dist/server.js"]