-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,3 +133,9 @@ services: | |
ports: | ||
- 8020:8000 | ||
|
||
termux: | ||
build: | ||
context: . | ||
dockerfile: ./termux/Dockerfile | ||
ports: | ||
- 8023:8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nameserver 8.8.8.8 |