diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..be11515 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM node:alpine AS build + +WORKDIR /usr/src/bot + +RUN apk add --update alpine-sdk libtool autoconf automake python3 + +COPY package.json ./ + +COPY yarn.lock ./ + +RUN yarn global add node-gyp + +RUN yarn install + +FROM node:alpine + +WORKDIR /usr/src/bot + +COPY --from=build /usr/src/bot/node_modules ./node_modules + +COPY . ./ + +CMD ["node", "bot.js"] |
