Compare commits

..

2 Commits

Author SHA1 Message Date
neru 726fd914e4 feat: add dockerfile 2026-01-14 22:37:25 -03:00
neru 753405c504 feat: add docker-compose.yml 2026-01-14 22:37:09 -03:00
2 changed files with 28 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
services:
bot:
build: .
container_name: luma
environment:
NODE_ENV: production
DISCORD_ID:
DISCORD_TOKEN:
TTS_AZURE_KEY:
restart: unless-stopped
+18
View File
@@ -0,0 +1,18 @@
# build
FROM node:24-alpine AS builder
WORKDIR /app
RUN apk add --no-cache python3 make g++ gcc
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# prod
FROM node:24-alpine
WORKDIR /app
RUN apk add --no-cache python3 make g++
COPY package*.json ./
RUN npm ci --only=production # only prod deps
COPY --from=builder /app/dist ./dist
CMD ["npm", "start"]