robosats/nodeapp/Dockerfile

16 lines
526 B
Docker
Raw Normal View History

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
RUN echo 'true' > static/selfhosted
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}