diff --git a/Dockerfile b/Dockerfile index 6b33bc9..9a6cc37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM alpine:latest RUN apk update -RUN apk add curl jq tmux -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 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 tar xvfz gotty_linux_amd64.tar.gz ENV TERM=xterm diff --git a/run.sh b/run.sh index 8664a58..857ad39 100644 --- a/run.sh +++ b/run.sh @@ -1,4 +1,4 @@ -#!/bin/ash +#!/bin/sh if [ -z "$port" ];then port=8080 @@ -15,8 +15,8 @@ if [ -n "$pkgs" ];then fi if [ -z "$command" ];then apk update - apk add pfetch figlet - command="pfetch && figlet no command set" + apk add figlet + command="curl -s https://raw.githubusercontent.com/dylanaraps/pfetch/master/pfetch | ash && figlet no command set && read swag" 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" \ No newline at end of file