Spaces:
Running
Running
saicharan1234
commited on
Commit
•
99f1c1b
1
Parent(s):
6221c5e
Update Dockerfile
Browse files- Dockerfile +14 -2
Dockerfile
CHANGED
@@ -30,9 +30,21 @@ RUN add-apt-repository ppa:flexiondotorg/nvtop && \
|
|
30 |
apt-get upgrade -y && \
|
31 |
apt-get install -y --no-install-recommends nvtop
|
32 |
|
33 |
-
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
apt-get install -y nodejs && \
|
35 |
-
npm install -g
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
# Install cloudflared
|
38 |
RUN wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && \
|
|
|
30 |
apt-get upgrade -y && \
|
31 |
apt-get install -y --no-install-recommends nvtop
|
32 |
|
33 |
+
# RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
|
34 |
+
# apt-get install -y nodejs && \
|
35 |
+
# npm install -g configurable-http-proxy
|
36 |
+
|
37 |
+
# Remove the old Node.js installation section and replace it with this:
|
38 |
+
|
39 |
+
# Install Node.js 18.x, npm, and localtunnel
|
40 |
+
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
41 |
apt-get install -y nodejs && \
|
42 |
+
npm install -g npm@latest && \
|
43 |
+
npm install -g configurable-http-proxy && \
|
44 |
+
npm install -g localtunnel
|
45 |
+
|
46 |
+
# Verify Node.js and npm versions
|
47 |
+
RUN node --version && npm --version
|
48 |
|
49 |
# Install cloudflared
|
50 |
RUN wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && \
|