sphinx-relay/Dockerfile

43 lines
699 B
Text
Raw Normal View History

Update to node16 (#410) * updating these files to see if it will work on node version 16 * src/utils/tribes.ts * update from 13 to 16 * /src/utils/tribeBots.ts * /src/utils/socket.ts * /src/utils/setup.ts * /src/utils/proxy.ts * /src/utils/nodeInfo.ts * added ignore to all the files so it'd atleast build * src/auth.ts * /src/builtin/git.ts * src/builtin/loop.ts * ./src/network/send.ts updated the model types for sqlite upgrade * ./src/network/receive.ts updated the model types for sqlite upgrade * ./src/network/modify.ts updated the model types for sqlite upgrade * ./src/network/intercept.ts updated the model types for sqlite upgrade * ./src/hub.ts updated the model types for sqlite upgrade * ./src/helpers.ts updated the model types for sqlite upgrade * ./src/grpc/regular.ts updated the model types for sqlite upgrade * ./src/controllers/subscriptions.ts updated the model types for sqlite upgrade * ./src/controllers/payment.ts updated the model types for sqlite upgrade * ./src/controllers/messages.ts updated the model types for sqlite upgrade * ./src/controllers/media.ts updated the model types for sqlite upgrade * ./src/controllers/invoices.ts updated the model types for sqlite upgrade * ./src/controllers/invites.ts updated the model types for sqlite upgrade * ./src/controllers/index.ts updated the model types for sqlite upgrade * ./src/controllers/details.ts updated the model types for sqlite upgrade * ./src/controllers/contacts.ts updated the model types for sqlite upgrade * ./src/controllers/confimations.ts updated the model types for sqlite upgrade * ./src/controllers/chats.ts updated the model types for sqlite upgrade * ./src/controllers/chatsTribes.ts updated the model types for sqlite upgrade * ./src/controllers/bots.ts updated the model types for sqlite upgrade * ./src/controllers/botapi/pay.ts updated the model types for sqlite upgrade * ./src/controllers/botapi/index.ts updated the model types for sqlite upgrade * ./src/controllers/botapi/brodcast.ts updated the model types for sqlite upgrade * ./src/controllers/api/personal.ts updated the model types for sqlite upgrade * [*] ./src/utils/timers.ts updated the model types for sqlite upgrade removed an array and added a .toString to make the values the same type * [*] ./src/controllers/subscriptions.ts updated the model types for sqlite upgrade removed the parse commands as the value we should be getting should be a number already * [*] ./src/controllers/messages.ts updated the model types for sqlite upgrade removed the parse commands as the value we should be getting should be a number already * [*] ./src/controllers/queries.ts updated the model types for sqlite upgrade made some changes to the accounting model * [*] ./src/controllers/lsat.ts updated the model types for sqlite upgrade made some changes to how we get the type for Lsats * [*] ./src/controllers/lsat.ts for some reason we were not using msgCount and just using the object when it is not a number * [*] ./src/controllers/chatTribes.ts changed from number array to string since that's what contactId's type is * [*] ./src/controllers/contacts.ts exisitng has the wrong types being attached to it * parsed the contactIds to see if they're a number or string and then formatted it properly to use in the sendMessage func * changed function to work no matter what (thanks Evan :)) * just used json.stringify instead * added types to the new updates to chat.ts
2022-08-30 09:12:46 -05:00
FROM node:16-buster-slim AS builder
2020-04-20 17:06:09 +01:00
WORKDIR /relay
RUN mkdir /relay/.lnd
2020-12-17 10:05:29 +00:00
COPY --chown=1000:1000 . .
2020-04-20 17:06:09 +01:00
RUN apt-get update
2020-04-20 17:06:09 +01:00
Update to node16 (#410) * updating these files to see if it will work on node version 16 * src/utils/tribes.ts * update from 13 to 16 * /src/utils/tribeBots.ts * /src/utils/socket.ts * /src/utils/setup.ts * /src/utils/proxy.ts * /src/utils/nodeInfo.ts * added ignore to all the files so it'd atleast build * src/auth.ts * /src/builtin/git.ts * src/builtin/loop.ts * ./src/network/send.ts updated the model types for sqlite upgrade * ./src/network/receive.ts updated the model types for sqlite upgrade * ./src/network/modify.ts updated the model types for sqlite upgrade * ./src/network/intercept.ts updated the model types for sqlite upgrade * ./src/hub.ts updated the model types for sqlite upgrade * ./src/helpers.ts updated the model types for sqlite upgrade * ./src/grpc/regular.ts updated the model types for sqlite upgrade * ./src/controllers/subscriptions.ts updated the model types for sqlite upgrade * ./src/controllers/payment.ts updated the model types for sqlite upgrade * ./src/controllers/messages.ts updated the model types for sqlite upgrade * ./src/controllers/media.ts updated the model types for sqlite upgrade * ./src/controllers/invoices.ts updated the model types for sqlite upgrade * ./src/controllers/invites.ts updated the model types for sqlite upgrade * ./src/controllers/index.ts updated the model types for sqlite upgrade * ./src/controllers/details.ts updated the model types for sqlite upgrade * ./src/controllers/contacts.ts updated the model types for sqlite upgrade * ./src/controllers/confimations.ts updated the model types for sqlite upgrade * ./src/controllers/chats.ts updated the model types for sqlite upgrade * ./src/controllers/chatsTribes.ts updated the model types for sqlite upgrade * ./src/controllers/bots.ts updated the model types for sqlite upgrade * ./src/controllers/botapi/pay.ts updated the model types for sqlite upgrade * ./src/controllers/botapi/index.ts updated the model types for sqlite upgrade * ./src/controllers/botapi/brodcast.ts updated the model types for sqlite upgrade * ./src/controllers/api/personal.ts updated the model types for sqlite upgrade * [*] ./src/utils/timers.ts updated the model types for sqlite upgrade removed an array and added a .toString to make the values the same type * [*] ./src/controllers/subscriptions.ts updated the model types for sqlite upgrade removed the parse commands as the value we should be getting should be a number already * [*] ./src/controllers/messages.ts updated the model types for sqlite upgrade removed the parse commands as the value we should be getting should be a number already * [*] ./src/controllers/queries.ts updated the model types for sqlite upgrade made some changes to the accounting model * [*] ./src/controllers/lsat.ts updated the model types for sqlite upgrade made some changes to how we get the type for Lsats * [*] ./src/controllers/lsat.ts for some reason we were not using msgCount and just using the object when it is not a number * [*] ./src/controllers/chatTribes.ts changed from number array to string since that's what contactId's type is * [*] ./src/controllers/contacts.ts exisitng has the wrong types being attached to it * parsed the contactIds to see if they're a number or string and then formatted it properly to use in the sendMessage func * changed function to work no matter what (thanks Evan :)) * just used json.stringify instead * added types to the new updates to chat.ts
2022-08-30 09:12:46 -05:00
RUN apt install -y make python3-minimal
RUN which python3
RUN apt install -y g++ gcc libmcrypt-dev
2021-10-12 16:09:12 -07:00
RUN apt-get -y install git
RUN rm ./package-lock.json
2020-06-01 12:26:22 +01:00
RUN npm install
2020-05-01 12:08:33 +01:00
2020-12-16 10:26:32 +00:00
RUN cp /relay/config/app.json /relay/dist/config/app.json
RUN cp /relay/config/config.json /relay/dist/config/config.json
2020-12-16 20:21:40 +00:00
RUN chown -R 1000:1000 /relay
Update to node16 (#410) * updating these files to see if it will work on node version 16 * src/utils/tribes.ts * update from 13 to 16 * /src/utils/tribeBots.ts * /src/utils/socket.ts * /src/utils/setup.ts * /src/utils/proxy.ts * /src/utils/nodeInfo.ts * added ignore to all the files so it'd atleast build * src/auth.ts * /src/builtin/git.ts * src/builtin/loop.ts * ./src/network/send.ts updated the model types for sqlite upgrade * ./src/network/receive.ts updated the model types for sqlite upgrade * ./src/network/modify.ts updated the model types for sqlite upgrade * ./src/network/intercept.ts updated the model types for sqlite upgrade * ./src/hub.ts updated the model types for sqlite upgrade * ./src/helpers.ts updated the model types for sqlite upgrade * ./src/grpc/regular.ts updated the model types for sqlite upgrade * ./src/controllers/subscriptions.ts updated the model types for sqlite upgrade * ./src/controllers/payment.ts updated the model types for sqlite upgrade * ./src/controllers/messages.ts updated the model types for sqlite upgrade * ./src/controllers/media.ts updated the model types for sqlite upgrade * ./src/controllers/invoices.ts updated the model types for sqlite upgrade * ./src/controllers/invites.ts updated the model types for sqlite upgrade * ./src/controllers/index.ts updated the model types for sqlite upgrade * ./src/controllers/details.ts updated the model types for sqlite upgrade * ./src/controllers/contacts.ts updated the model types for sqlite upgrade * ./src/controllers/confimations.ts updated the model types for sqlite upgrade * ./src/controllers/chats.ts updated the model types for sqlite upgrade * ./src/controllers/chatsTribes.ts updated the model types for sqlite upgrade * ./src/controllers/bots.ts updated the model types for sqlite upgrade * ./src/controllers/botapi/pay.ts updated the model types for sqlite upgrade * ./src/controllers/botapi/index.ts updated the model types for sqlite upgrade * ./src/controllers/botapi/brodcast.ts updated the model types for sqlite upgrade * ./src/controllers/api/personal.ts updated the model types for sqlite upgrade * [*] ./src/utils/timers.ts updated the model types for sqlite upgrade removed an array and added a .toString to make the values the same type * [*] ./src/controllers/subscriptions.ts updated the model types for sqlite upgrade removed the parse commands as the value we should be getting should be a number already * [*] ./src/controllers/messages.ts updated the model types for sqlite upgrade removed the parse commands as the value we should be getting should be a number already * [*] ./src/controllers/queries.ts updated the model types for sqlite upgrade made some changes to the accounting model * [*] ./src/controllers/lsat.ts updated the model types for sqlite upgrade made some changes to how we get the type for Lsats * [*] ./src/controllers/lsat.ts for some reason we were not using msgCount and just using the object when it is not a number * [*] ./src/controllers/chatTribes.ts changed from number array to string since that's what contactId's type is * [*] ./src/controllers/contacts.ts exisitng has the wrong types being attached to it * parsed the contactIds to see if they're a number or string and then formatted it properly to use in the sendMessage func * changed function to work no matter what (thanks Evan :)) * just used json.stringify instead * added types to the new updates to chat.ts
2022-08-30 09:12:46 -05:00
FROM node:16-buster-slim
2022-10-17 11:51:46 -07:00
USER root
RUN apt-get update
RUN apt-get -y install git
USER 1000
2020-05-19 12:26:25 +01:00
WORKDIR /relay
2020-05-20 17:44:42 +01:00
COPY --from=builder /relay .
2020-05-20 17:44:42 +01:00
EXPOSE 3300
ENV NODE_ENV production
ENV NODE_SCHEME http
ENV PORT 3300
CMD [ "node", "/relay/dist/app.js" ]