ssh-chat-docker/Dockerfile
Marco Slater 93c49c1625 Fix build
2019-05-11 19:44:21 +01:00

16 lines
458 B
Docker

FROM debian:latest
RUN apt-get update
RUN apt-get install -y curl jq
RUN curl -s https://api.github.com/repos/shazow/ssh-chat/releases/latest | jq -r '.assets[].browser_download_url' | grep "ssh-chat-linux_amd64.tgz" | xargs curl -L -o ssh-chat-linux_amd64.tgz
RUN tar xvfz ssh-chat-linux_amd64.tgz
FROM debian:latest
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY --from=0 /ssh-chat/ssh-chat /ssh-chat
ENTRYPOINT ["/entrypoint.sh"]