mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +00:00
[rpc-client] rework package so it works after building.. still needs research
This commit is contained in:
parent
a5f2b328d3
commit
c706f25214
5 changed files with 18 additions and 4 deletions
14
bot.Dockerfile
Normal file
14
bot.Dockerfile
Normal 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
|
1
packages/roleypoly-rpc-client/.gitignore
vendored
Normal file
1
packages/roleypoly-rpc-client/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/*.js
|
|
@ -3,12 +3,11 @@
|
||||||
"name": "@roleypoly/rpc-client",
|
"name": "@roleypoly/rpc-client",
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "yarn build",
|
"build": "babel -d . src",
|
||||||
"build": "babel --delete-dir-on-start -d lib .",
|
|
||||||
"dev": "yarn build --watch"
|
"dev": "yarn build --watch"
|
||||||
},
|
},
|
||||||
"types": ".",
|
"types": "src/",
|
||||||
"main": "./lib/index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async-retry": "^1.2.3",
|
"async-retry": "^1.2.3",
|
||||||
"superagent": "^5.0.2"
|
"superagent": "^5.0.2"
|
||||||
|
|
Loading…
Add table
Reference in a new issue