sharding-framework/Dockerfile

20 lines
542 B
Docker

# Template Dockerfile, expand as necessary
FROM node:lts-alpine as builder
# For C/C++ dependencies that need to be built
RUN apk update && apk add build-base python3
WORKDIR /app
COPY package.json package.json
COPY ./.yarnrc.yml ./.yarnrc.yml
COPY ./.yarn/releases ./.yarn/releases
RUN yarn install
FROM node:lts-alpine
WORKDIR /app
COPY build build
COPY --from=builder /musicbot/node_modules ./node_modules
COPY package.json package.json
# VOLUME [ "/app/cache" ]
CMD ["node", "--enable-source-maps", "build/index.js"]
# CMD ["/bin/ash"]