mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-21 04:39:01 +00:00

* Init robosats node app development * Add simple node app to dev docker-compose * Add multi-platform build for node client app
14 lines
489 B
Docker
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} |