Vitrous commited on
Commit
49baafa
·
verified ·
1 Parent(s): 6c847e4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -9
Dockerfile CHANGED
@@ -28,20 +28,21 @@ WORKDIR $HOME/app
28
  # Copy the application files into the container
29
  COPY --chown=user . $HOME/app
30
 
31
- # Download and extract ngrok
32
- RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-v3-stable-linux-amd64.zip && \
33
- unzip ngrok-v3-stable-linux-amd64.zip && \
34
- rm ngrok-v3-stable-linux-amd64.zip
35
 
36
- # Create the destination directory for ngrok binary
37
- RUN mkdir -p $HOME/.local/bin
 
 
 
 
38
 
39
  # Move ngrok binary to destination directory
40
- RUN mv ngrok $HOME/.local/bin/ngrok
41
 
42
  # Set permissions for ngrok
43
- RUN chmod +x $HOME/.local/bin/ngrok
44
-
45
 
46
  # Create ngrok configuration
47
  RUN mkdir -p $HOME/.ngrok2 && \
 
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
35
+ RUN tar xvzf /tmp/ngrok.tgz -C /usr/local/bin && \
36
+ rm /tmp/ngrok.tgz
37
+
38
+ # Verify ngrok version
39
+ RUN /usr/local/bin/ngrok version
40
 
41
  # Move ngrok binary to destination directory
42
+ RUN mv ngrok /usr/local/bin/ngrok
43
 
44
  # Set permissions for ngrok
45
+ RUN chmod +x /usr/local/bin/ngrok
 
46
 
47
  # Create ngrok configuration
48
  RUN mkdir -p $HOME/.ngrok2 && \