Vitrous commited on
Commit
e84f084
·
verified ·
1 Parent(s): 525086a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -10
Dockerfile CHANGED
@@ -28,18 +28,13 @@ WORKDIR $HOME/app
28
  # Copy the application files into the container
29
  COPY --chown=user . $HOME/app
30
 
31
- # Download ngrok v3 from the official website
32
- RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tgz -O /tmp/ngrok.tgz
33
-
34
- # Extract ngrok binary to /usr/local/bin with elevated permissions
35
- RUN sudo tar xvzf /tmp/ngrok.tgz -C /usr/local/bin && \
36
  rm /tmp/ngrok.tgz
37
 
38
- # Move ngrok binary to destination directory
39
- RUN mv ngrok /usr/local/bin/ngrok
40
-
41
- # Set permissions for ngrok
42
- RUN chmod +x /usr/local/bin/ngrok
43
 
44
  # Verify ngrok version
45
  RUN /usr/local/bin/ngrok version
 
28
  # Copy the application files into the container
29
  COPY --chown=user . $HOME/app
30
 
31
+ # Download and install ngrok
32
+ RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tgz -O /tmp/ngrok.tgz && \
33
+ tar xvzf /tmp/ngrok.tgz -C /usr/local/bin && \
 
 
34
  rm /tmp/ngrok.tgz
35
 
36
+ # Update ngrok
37
+ RUN /usr/local/bin/ngrok update
 
 
 
38
 
39
  # Verify ngrok version
40
  RUN /usr/local/bin/ngrok version