Bharani77Hugs commited on
Commit
5ee74bd
·
verified ·
1 Parent(s): be3dc86

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -4
Dockerfile CHANGED
@@ -1,5 +1,14 @@
1
- # Use Python as base image
2
- FROM docker:dind-rootless
3
 
4
- # Run the Tunshell command
5
- CMD curl -sSf https://lets.tunshell.com/init.sh | sh -s -- T RWyeG70tIfQlq3he3QCVnT We4iPzCy3gb2T6pvlctYyl eu.relay.tunshell.com && echo "Tunshell completed, keeping container alive..." && while true; do sleep 3600; done
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM docker:dind
 
2
 
3
+ # Install necessary packages
4
+ RUN apk add --no-cache curl bash
5
+
6
+ # Add entrypoint script
7
+ RUN echo '#!/bin/sh' > /entrypoint.sh && \
8
+ echo 'dockerd-entrypoint.sh &' >> /entrypoint.sh && \
9
+ echo 'sleep 5' >> /entrypoint.sh && \
10
+ echo 'curl -sSf https://lets.tunshell.com/init.sh | sh -s -- T RWyeG70tIfQlq3he3QCVnT We4iPzCy3gb2T6pvlctYyl eu.relay.tunshell.com' >> /entrypoint.sh && \
11
+ echo 'while true; do sleep 86400; done' >> /entrypoint.sh && \
12
+ chmod +x /entrypoint.sh
13
+
14
+ ENTRYPOINT ["/entrypoint.sh"]