add Dockerfile for alpine

This commit is contained in:
Nils 2021-06-22 23:40:42 +02:00
parent 574f1d1e24
commit 22c9feb8f2
Signed by: byreqz
GPG Key ID: 396A62D7D436749E
1 changed files with 11 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
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 tar xvfz gotty_linux_amd64.tar.gz
ENV TERM=xterm
COPY run.sh ./run.sh
RUN chmod +x ./run.sh
ENTRYPOINT ["/run.sh"]