mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-01 20:42:50 +08:00
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
460 B
Docker
25 lines
460 B
Docker
FROM node:20-slim AS builder
|
|
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:20-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/dist ./dist
|
|
COPY --from=builder /app/web/dist ./web/dist
|
|
COPY --from=builder /app/package*.json ./
|
|
RUN npm ci --production
|
|
|
|
EXPOSE 3000
|
|
VOLUME ["/app/data"]
|
|
|
|
CMD ["node", "dist/index.js"]
|