Skip to content

Commit

Permalink
add termux
Browse files Browse the repository at this point in the history
  • Loading branch information
takano32 committed Mar 10, 2024
1 parent 1a160f6 commit 9524fbb
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,9 @@ services:
ports:
- 8020:8000

termux:
build:
context: .
dockerfile: ./termux/Dockerfile
ports:
- 8023:8000
28 changes: 28 additions & 0 deletions termux/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM termux/termux-docker
LABEL maintainer "TAKANO Mitsuhiro <[email protected]>"

#COPY ./termux/resolv.conf /etc/resolv.conf
#RUN cat /etc/resolv.conf
RUN ping -c 3 8.8.8.8
RUN ping -c 3 google.com

RUN pkg update && pkg upgrade -y
RUN apt update && apt install -yq clang
RUN pkg install -y git

ENV ORIGIN=https://github.com/torvalds/linux.git
#RUN git clone --depth 1 ${ORIGIN} /build-kernel/linux
#RUN while :; do cd /build-kernel/linux && git fetch --unshallow && break || sleep 5; done
#RUN cd /build-kernel/linux && git pull --all

RUN apt-get build-dep -y linux
RUN apt-get install -y llvm clang lld
RUN apt-get install -y rpm
RUN apt-get install -y curl python3-pip
RUN apt-get clean

COPY ./entrypoint.sh /
RUN chmod 755 /entrypoint.sh
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]

1 change: 1 addition & 0 deletions termux/resolv.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nameserver 8.8.8.8

0 comments on commit 9524fbb

Please sign in to comment.