initial commit2
This commit is contained in:
20
apps/web/Dockerfile
Normal file
20
apps/web/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user