mirror of
https://github.com/Alee14/DLAP.git
synced 2025-01-22 10:52:03 -05:00
23 lines
339 B
Docker
23 lines
339 B
Docker
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"]
|