[rpc-client] rework package so it works after building.. still needs research

This commit is contained in:
41666 2019-04-16 06:41:23 -05:00
parent a5f2b328d3
commit c706f25214
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
5 changed files with 18 additions and 4 deletions

14
bot.Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM node:11 AS builder
WORKDIR /src
COPY . /src
# we double yarn here to strip off dev-only packages that are needed at build time.
RUN yarn workspace @roleypoly/bot --frozen-lockfile &&\
yarn workspace @roleypoly/bot build &&\
yarn workspace @roleypoly/bot --frozen-lockfile --prod
FROM mhart/alpine-node:11
ENV NODE_ENV production
WORKDIR /dist
COPY --from=builder /src/packages/roleypoly-bot /dist/packages/roleypoly-bot
COPY --from=builder /src/node_modules /dist/node_modules
CMD node /src/packages/roleypoly-bot/lib/index.js