2019-05-11 18:44:21 +00:00
|
|
|
FROM debian:latest
|
2018-03-23 17:21:01 +00:00
|
|
|
|
2019-05-11 18:44:21 +00:00
|
|
|
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
|
2018-03-23 17:21:01 +00:00
|
|
|
|
|
|
|
FROM debian:latest
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod +x /entrypoint.sh
|
2019-05-11 18:48:07 +00:00
|
|
|
RUN apt-get update && apt-get install openssh-client -y && apt-get clean
|
2018-03-23 17:21:01 +00:00
|
|
|
|
2019-05-11 18:44:21 +00:00
|
|
|
COPY --from=0 /ssh-chat/ssh-chat /ssh-chat
|
2018-03-23 17:21:01 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|