music-bot/Dockerfile
2024-03-25 23:25:25 +02:00

18 lines
484 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
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"]