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