gotty-docker/Dockerfile

12 lines
382 B
Docker
Raw Normal View History

2021-06-22 21:40:42 +00:00
FROM alpine:latest
RUN apk update
2021-06-23 19:45:22 +00:00
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
2021-06-22 21:40:42 +00:00
RUN tar xvfz gotty_linux_amd64.tar.gz
ENV TERM=xterm
COPY run.sh ./run.sh
RUN chmod +x ./run.sh
ENTRYPOINT ["/run.sh"]