Skip to content

Commit

Permalink
hopeful
Browse files Browse the repository at this point in the history
  • Loading branch information
Amateur-God committed Jun 28, 2024
1 parent 38de7b6 commit e70c1b3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions addons/adb_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ ARG BUILD_FROM
FROM ${BUILD_FROM}

RUN apt-get update && \
apt-get install -y --no-install-recommends android-tools-adb wget bash && \
rm -rf /var/lib/apt/lists/*

# Download and build TTYD
RUN apt-get update && \
apt-get install -y build-essential cmake git libjson-c-dev libwebsockets-dev && \
apt-get install -y --no-install-recommends android-tools-adb wget bash build-essential cmake git libjson-c-dev libwebsockets-dev && \
rm -rf /var/lib/apt/lists/* && \
git clone https://github.com/tsl0922/ttyd.git && \
cd ttyd && mkdir build && cd build && cmake ..
RUN make && make install
git clone https://github.com/tsl0922/ttyd.git
WORKDIR /ttyd
RUN mkdir build
WORKDIR /ttyd/build
RUN cmake .. && \
make && make install

COPY run.sh /run.sh
COPY restricted-shell.sh /usr/local/bin/restricted-shell.sh
Expand Down

0 comments on commit e70c1b3

Please sign in to comment.