more correct dockerfile and compose.yaml

This commit is contained in:
Aster Fialla
2026-02-17 17:16:48 -05:00
parent 0a4bfa59ad
commit 321fe7f0a9
2 changed files with 34 additions and 14 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY . .
CMD ["node", "src/bot.js"]