mark discord.js as external

This commit is contained in:
Ryan Cao 2022-05-21 20:58:23 +08:00
parent bba0b1bce0
commit ef5ab8ad77
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
5 changed files with 61 additions and 12 deletions

View file

@ -1,12 +1,8 @@
FROM node:17-alpine as build-image
FROM node:17-alpine
WORKDIR /app
COPY package.json yarn.lock .
RUN yarn install --frozen-lockfile
COPY . .
RUN yarn build
FROM node:17-alpine
WORKDIR /app
COPY --from=build-image /app/index.js /app/index.js
EXPOSE 3000
CMD [ "node", "index.js" ]
CMD [ "node", "dist/index.js" ]