The official leaked source code of the Dyno Discord Bot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
407 B

4 years ago
  1. FROM node:carbon-alpine
  2. WORKDIR /app
  3. ARG NPM_TOKEN
  4. COPY package*.json ./
  5. COPY .npmrc .npmrc
  6. RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
  7. RUN apk add --no-cache --update python build-base git \
  8. && rm -rf /var/cache/apk/*
  9. RUN yarn cache clean
  10. RUN yarn install --production
  11. COPY . .
  12. RUN rm -f .npmrc
  13. RUN apk del python build-base git
  14. ENV NODE_ENV production
  15. CMD [ "yarn", "start" ]