2024-03-27 19:03:05 +01:00
|
|
|
FROM zotify as zotify
|
2024-03-25 22:25:25 +01:00
|
|
|
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
|
2024-03-25 22:42:11 +01:00
|
|
|
RUN apk update && apk add ffmpeg
|
2024-03-27 19:03:05 +01:00
|
|
|
COPY --from=zotify /app/dist/zotify /bin/zotify
|
2024-03-25 22:25:25 +01:00
|
|
|
WORKDIR /musicbot
|
|
|
|
COPY build build
|
|
|
|
COPY --from=builder /musicbot/node_modules ./node_modules
|
|
|
|
COPY package.json package.json
|
|
|
|
VOLUME [ "/musicbot/cache" ]
|
2024-03-27 19:03:05 +01:00
|
|
|
# CMD ["node", "--enable-source-maps", "build/index.js"]
|
|
|
|
CMD ["/bin/ash"]
|