music-bot/Dockerfile
Navy.gif 2a3a034e59 Various fixes and improvements
- Added debug statements
- Added option to limit commands to specific roles
- Handle process exiting explicitly
2024-04-13 10:37:10 +03:00

21 lines
587 B
Docker

FROM zotify as zotify
FROM node:lts-alpine as builder
RUN apk update && apk add build-base python3
WORKDIR /musicbot
COPY package.json package.json
COPY ./.yarnrc.yml ./.yarnrc.yml
COPY ./.yarn/releases ./.yarn/releases
# CMD ["/bin/ash"]
RUN yarn install
FROM node:lts-alpine
RUN apk update && apk add ffmpeg
COPY --from=zotify /app/dist/zotify /bin/zotify
WORKDIR /musicbot
COPY build build
COPY --from=builder /musicbot/node_modules ./node_modules
COPY package.json package.json
VOLUME [ "/musicbot/cache" ]
CMD ["node", "--enable-source-maps", "build/index.js"]
# CMD ["/bin/ash"]