2020-01-02 13:03:53 +01:00
|
|
|
FROM alpine:3.11
|
|
|
|
MAINTAINER Dr Internet <internet@limelightgaming.net>
|
|
|
|
|
2020-01-02 13:43:08 +01:00
|
|
|
# Install RSync and Open SSH.
|
2020-01-02 15:37:57 +01:00
|
|
|
RUN apk update && apk add --no-cache rsync openssh-client
|
2020-01-02 13:03:53 +01:00
|
|
|
RUN rm -rf /var/cache/apk/*
|
2020-01-02 13:43:08 +01:00
|
|
|
|
2020-01-02 17:30:18 +01:00
|
|
|
# Prepare SSH dir.
|
2020-01-02 13:23:40 +01:00
|
|
|
RUN mkdir ~/.ssh
|
2020-01-02 13:43:08 +01:00
|
|
|
|
|
|
|
# Copy in our executables.
|
2020-01-02 16:57:38 +01:00
|
|
|
COPY agent-start agent-stop agent-add /bin/
|
|
|
|
COPY hosts-clear hosts-add /bin/
|
|
|
|
RUN chmod +x /bin/agent-* /bin/hosts-*
|
2020-01-02 17:30:18 +01:00
|
|
|
|
|
|
|
# Prepare for known hosts.
|
2020-01-02 17:29:47 +01:00
|
|
|
RUN hosts-clear
|