build: switch frontend and worker to Dockerfile images

This commit is contained in:
Ruslan Bakiev
2026-02-20 11:51:26 +07:00
parent e1f301c913
commit a20b6ebb5a
4 changed files with 50 additions and 22 deletions

View File

@@ -0,0 +1,15 @@
FROM node:22-bookworm-slim
WORKDIR /app/delivery
COPY package*.json ./
# Worker does not need Nuxt postinstall hooks.
RUN npm install --ignore-scripts --legacy-peer-deps
COPY . .
RUN npx prisma generate
ENV NODE_ENV=production
CMD ["npm", "run", "worker:delivery"]