Praveen76 commited on
Commit
74d1b53
·
verified ·
1 Parent(s): 05cf042

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -10
Dockerfile CHANGED
@@ -10,11 +10,8 @@ RUN pip install --upgrade pip
10
  # Install dependencies
11
  RUN pip install -r requirements.txt
12
 
13
- # Install ngrok and DNS utilities
14
- RUN apt-get update && apt-get install -y unzip dnsutils \
15
- && curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | tee /etc/apt/trusted.gpg.d/ngrok.asc \
16
- && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | tee /etc/apt/sources.list.d/ngrok.list \
17
- && apt-get update && apt-get install ngrok
18
 
19
  # Copy application files
20
  COPY app/. /app/.
@@ -22,8 +19,5 @@ COPY app/. /app/.
22
  # Expose port for application
23
  EXPOSE 8001
24
 
25
- # Add a health check for DNS resolution
26
- HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD nslookup connect.ngrok-agent.com || exit 1
27
-
28
- # Start ngrok and the Flask application
29
- CMD ngrok http 8001 --log=stdout & python /app/main.py
 
10
  # Install dependencies
11
  RUN pip install -r requirements.txt
12
 
13
+ # Install localtunnel
14
+ RUN npm install -g localtunnel
 
 
 
15
 
16
  # Copy application files
17
  COPY app/. /app/.
 
19
  # Expose port for application
20
  EXPOSE 8001
21
 
22
+ # Start localtunnel and the Flask application
23
+ CMD lt --port 8001 --subdomain mysubdomain & python /app/main.py