music-bot/Dockerfile
Navy.gif 822bf608f3 Bunch of updates and fixes
rebuild option in rescan
request command to request songs
music downloader classes
misc fixes
2024-03-27 18:14:37 +02:00

22 lines
628 B
Docker

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
# RUN python3 -m ensurepip
# RUN python3 -m pip install --user pipx
# RUN pipx install https://get.zotify.xyz
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"]