diff options
| author | Adam Soltys <[email protected]> | 2021-10-27 10:22:35 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-10-27 10:22:35 -0700 |
| commit | 31c064b0c67af5ae49f23d2bb7f283dce3baf5d9 (patch) | |
| tree | 6eb06b9693f43bcef393371e3854ea1f75224c94 | |
| parent | a2a2bd06d5c26bff19759a08faffd1eeea03d892 (diff) | |
| download | coinos-server-31c064b0c67af5ae49f23d2bb7f283dce3baf5d9.tar.gz coinos-server-31c064b0c67af5ae49f23d2bb7f283dce3baf5d9.zip | |
use pnpm in dockerfile
| -rw-r--r-- | Dockerfile | 6 | ||||
| -rw-r--r-- | routes/payments.js | 3 |
2 files changed, 4 insertions, 5 deletions
@@ -4,10 +4,12 @@ ARG NODE_ENV=production ENV NODE_ENV $NODE_ENV RUN apk add git +RUN apk add --update npm +RUN npm i -g pnpm COPY . /app WORKDIR /app -RUN yarn install +RUN pnpm i -CMD ["yarn", "start"] +CMD ["pnpm", "start"] diff --git a/routes/payments.js b/routes/payments.js index 261d34f3..ac9cff5c 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -42,7 +42,6 @@ if (config.lna) { app.post("/lightning/invoice", require("./lightning/invoice")); app.post("/lightning/query", auth, require("./lightning/query")); app.post("/lightning/send", auth, require("./lightning/send")); - app.post("/lightning/withdraw", auth, require("./lightning/withdraw")); require("./lightning/receive"); } @@ -53,7 +52,6 @@ if (config.bitcoin) { app.post("/bitcoin/sweep", auth, require("./bitcoin/sweep")); app.post("/bitcoin/fee", auth, require("./bitcoin/fee")); app.post("/bitcoin/send", auth, require("./bitcoin/send")); - app.post("/bitcoin/withdraw", auth, require("./bitcoin/withdraw")); require("./bitcoin/receive"); setTimeout(async () => { @@ -75,7 +73,6 @@ if (config.liquid) { app.get("/liquid/generate", auth, require("./liquid/generate")); app.post("/liquid/fee", auth, require("./liquid/fee")); app.post("/liquid/send", auth, require("./liquid/send")); - app.post("/liquid/withdraw", auth, require("./liquid/withdraw")); app.post("/taxi", auth, require("./liquid/taxi")); require("./liquid/receive"); |
