mirror of
https://github.com/byReqz/gotty-docker.git
synced 2024-11-22 15:41:16 +00:00
fix musl incompatibility
This commit is contained in:
parent
f25dab2d79
commit
989ac9da8b
@ -1,7 +1,7 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk update
|
RUN apk update
|
||||||
RUN apk add curl jq tmux
|
RUN apk add curl jq tmux libc6-compat
|
||||||
RUN curl -s https://api.github.com/repos/yudai/gotty/releases/latest | jq -r '.assets[].browser_download_url' | grep "gotty_linux_amd64.tar.gz" | xargs curl -L -o gotty_linux_amd64.tar.gz
|
RUN curl -s https://api.github.com/repos/yudai/gotty/releases/latest | jq -r '.assets[].browser_download_url' | grep "gotty_linux_amd64.tar.gz" | xargs curl -L -o gotty_linux_amd64.tar.gz
|
||||||
RUN tar xvfz gotty_linux_amd64.tar.gz
|
RUN tar xvfz gotty_linux_amd64.tar.gz
|
||||||
|
|
||||||
|
8
run.sh
8
run.sh
@ -1,4 +1,4 @@
|
|||||||
#!/bin/ash
|
#!/bin/sh
|
||||||
|
|
||||||
if [ -z "$port" ];then
|
if [ -z "$port" ];then
|
||||||
port=8080
|
port=8080
|
||||||
@ -15,8 +15,8 @@ if [ -n "$pkgs" ];then
|
|||||||
fi
|
fi
|
||||||
if [ -z "$command" ];then
|
if [ -z "$command" ];then
|
||||||
apk update
|
apk update
|
||||||
apk add pfetch figlet
|
apk add figlet
|
||||||
command="pfetch && figlet no command set"
|
command="curl -s https://raw.githubusercontent.com/dylanaraps/pfetch/master/pfetch | ash && figlet no command set && read swag"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s $command "$title"
|
/gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s "$title" "$command"
|
Loading…
Reference in New Issue
Block a user