Spaces:
Sleeping
Sleeping
File size: 455 Bytes
ea3bc85 e58f470 92779c8 32a9023 92779c8 17071a3 e58f470 17071a3 e58f470 92779c8 17071a3 e58f470 17071a3 e58f470 32a9023 17071a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Use Ubuntu as the base image
FROM ubuntu:latest
# Install socat
RUN apt-get update && \
apt-get install -y socat && \
apt-get clean
# Create the socat proxy script
RUN echo '#!/bin/sh\n\
socat -d -d TCP4-LISTEN:7860,reuseaddr,fork \
OPENSSL:115.244.41.198:7860,verify=0' \
> /usr/local/bin/start-proxy.sh && chmod +x /usr/local/bin/start-proxy.sh
# Expose the port
EXPOSE 7860
# Run the socat proxy
CMD ["/usr/local/bin/start-proxy.sh"]
|