2022-08-22 16:51:23 +00:00
|
|
|
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
|
|
|
|
|
2022-08-22 23:18:31 +00:00
|
|
|
RUN echo 'true' > static/selfhosted
|
|
|
|
|
2022-08-22 16:51:23 +00:00
|
|
|
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}
|