Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ COPY --from=bootstrap / /
WORKDIR ${TERMUX__HOME}
SHELL ["sh", "-c"]

ENTRYPOINT ["/entrypoint.sh"]
Comment thread
NoNameWasDefined marked this conversation as resolved.
USER 1000:1000
Comment thread
NoNameWasDefined marked this conversation as resolved.
CMD ["login"]
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,12 @@ docker run -it --rm termux/termux-docker bash -c "apt update && apt install -yq

By default root shell is disabled in container as Termux doesn't really
support usage of package manager under root account. In cases where you
really need shell with root privileges, entrypoint should be overridden.

The provided images have 2 entry points:

- `/entrypoint.sh` - the standard one which drops privileges to `system`
user.
- `/entrypoint_root.sh` - alternate entrypoint that does not drop privileges.
really need shell with root privileges, the user should be overridden.

Usage example:

```.sh
docker run -it --entrypoint /entrypoint_root.sh termux/termux-docker
docker run -it --user 0 termux/termux-docker
```

## Building image
Expand Down
22 changes: 0 additions & 22 deletions entrypoint.sh

This file was deleted.

12 changes: 0 additions & 12 deletions entrypoint_root.sh

This file was deleted.

6 changes: 0 additions & 6 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -410,12 +410,6 @@ root:x:0:0:root:/:/system/bin/sh
system:x:1000:1000:system:${TERMUX__ROOTFS}/home:${TERMUX__PREFIX}/bin/login
EOF

echo "[*] Copying entrypoint.sh to /..."
cp entrypoint.sh "${TERMUX_DOCKER__ROOTFS}/"

echo "[*] Copying entrypoint_root.sh to /..."
cp entrypoint_root.sh "${TERMUX_DOCKER__ROOTFS}/"

echo "[*] Setting permissions..."
find -L "${TERMUX_DOCKER__ROOTFS}/data" \
-type d -exec \
Expand Down
Loading