robosats/nodeapp/Dockerfile
Reckless_Satoshi d769129142
Create RoboSats docker client app for soverign nodes (#216)
* Init robosats node app development

* Add simple node app to dev docker-compose

* Add multi-platform build for node client app
2022-08-22 16:51:23 +00:00

14 lines
489 B
Docker

FROM node:18-bullseye-slim
RUN mkdir -p /usr/src/robosats
WORKDIR /usr/src/robosats
COPY . .
RUN apt-get update
RUN apt-get install -y socat
RUN npm install http-server
EXPOSE 12596
CMD npm exec http-server -- . -p 12596 -P http://127.0.0.1:81 -i false -d false & nohup socat tcp4-LISTEN:81,reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${TOR_PROXY_IP:-127.0.0.1}:${ROBOSATS_ONION:-robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion}:80,socksport=${TOR_PROXY_PORT:-9050}