angeloqq commited on
Commit
8c8e3e2
·
verified ·
1 Parent(s): 6424085

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -4
Dockerfile CHANGED
@@ -15,11 +15,16 @@ RUN pip install --no-cache-dir -r requirements.txt
15
  # Copy the rest of the application code to the working directory
16
  COPY . .
17
 
18
- # Install Ngrok
19
- RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && \
20
- unzip ngrok-stable-linux-amd64.zip && \
 
 
 
 
 
21
  mv ngrok /usr/local/bin/ngrok && \
22
- rm ngrok-stable-linux-amd64.zip
23
 
24
  # Command to run the application
25
  CMD ["sh", "-c", "python app/app.py & ngrok http 8000"]
 
15
  # Copy the rest of the application code to the working directory
16
  COPY . .
17
 
18
+ # Install curl (if not already available)
19
+ RUN apt-get update && \
20
+ apt-get install -y curl && \
21
+ apt-get clean
22
+
23
+ # Install Ngrok using curl
24
+ RUN curl -o ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && \
25
+ unzip ngrok.zip && \
26
  mv ngrok /usr/local/bin/ngrok && \
27
+ rm ngrok.zip
28
 
29
  # Command to run the application
30
  CMD ["sh", "-c", "python app/app.py & ngrok http 8000"]