Update Dockerfile
Browse files- Dockerfile +7 -10
Dockerfile
CHANGED
|
@@ -3,32 +3,29 @@ FROM ubuntu:22.04
|
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
ENV HOSTNAME=Nobita-Terminal
|
| 5 |
|
| 6 |
-
# 1. Install Tools
|
| 7 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 8 |
ca-certificates curl wget git sudo procps xz-utils python3-pip proot \
|
| 9 |
&& curl -fsSL https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64 -o /usr/local/bin/ttyd \
|
| 10 |
&& chmod +x /usr/local/bin/ttyd \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
-
# 2. Stealth Node.js v22 (Manual Binary)
|
| 14 |
RUN wget https://nodejs.org/dist/v22.13.1/node-v22.13.1-linux-x64.tar.xz && \
|
| 15 |
tar -xJf node-v22.13.1-linux-x64.tar.xz -C /usr/local --strip-components=1 && \
|
| 16 |
rm node-v22.13.1-linux-x64.tar.xz
|
| 17 |
|
| 18 |
-
# 3.
|
| 19 |
-
RUN
|
| 20 |
-
|
| 21 |
-
# 4. Setup User & Copy Files
|
| 22 |
RUN useradd -m -u 1000 user
|
| 23 |
WORKDIR /home/user/app
|
| 24 |
|
| 25 |
-
# COPY SEMUA FILE
|
| 26 |
COPY --chown=user . .
|
| 27 |
-
|
| 28 |
RUN mkdir -p /tmp/dns && chown -R user:user /tmp/dns /home/user/app
|
| 29 |
|
| 30 |
USER user
|
| 31 |
EXPOSE 7860
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
CMD ["
|
|
|
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
ENV HOSTNAME=Nobita-Terminal
|
| 5 |
|
| 6 |
+
# 1. Install Tools, TTYD, & Proot
|
| 7 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 8 |
ca-certificates curl wget git sudo procps xz-utils python3-pip proot \
|
| 9 |
&& curl -fsSL https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64 -o /usr/local/bin/ttyd \
|
| 10 |
&& chmod +x /usr/local/bin/ttyd \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
+
# 2. Stealth Node.js v22 Installation (Manual Binary)
|
| 14 |
RUN wget https://nodejs.org/dist/v22.13.1/node-v22.13.1-linux-x64.tar.xz && \
|
| 15 |
tar -xJf node-v22.13.1-linux-x64.tar.xz -C /usr/local --strip-components=1 && \
|
| 16 |
rm node-v22.13.1-linux-x64.tar.xz
|
| 17 |
|
| 18 |
+
# 3. Setup User & Gateway Tools
|
| 19 |
+
RUN npm install -g http-proxy
|
|
|
|
|
|
|
| 20 |
RUN useradd -m -u 1000 user
|
| 21 |
WORKDIR /home/user/app
|
| 22 |
|
| 23 |
+
# COPY SEMUA FILE
|
| 24 |
COPY --chown=user . .
|
|
|
|
| 25 |
RUN mkdir -p /tmp/dns && chown -R user:user /tmp/dns /home/user/app
|
| 26 |
|
| 27 |
USER user
|
| 28 |
EXPOSE 7860
|
| 29 |
|
| 30 |
+
# 4. JALANKAN GATEWAY
|
| 31 |
+
CMD ["node", "gateway.js"]
|