initial commit2
This commit is contained in:
15
apps/worker/Dockerfile
Normal file
15
apps/worker/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user