mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-30 09:48:54 +00:00
24 lines
550 B
Docker
24 lines
550 B
Docker
FROM alpine:3.11.3
|
|
|
|
ARG go_pkg_url
|
|
|
|
RUN apk add --update alpine-sdk linux-headers cmake openssh curl
|
|
|
|
|
|
RUN adduser -D -s /bin/ash jenkins && \
|
|
passwd -u jenkins && \
|
|
ssh-keygen -A && \
|
|
mkdir /home/jenkins/.ssh && \
|
|
chown -R jenkins:jenkins /home/jenkins
|
|
|
|
RUN curl -s $go_pkg_url -o go.tar.gz && \
|
|
tar -C /usr/local -xzf go.tar.gz
|
|
|
|
COPY authorized_keys /home/jenkins/.ssh/authorized_keys
|
|
RUN chown -R jenkins:jenkins /home/jenkins/.ssh && \
|
|
chmod 600 /home/jenkins/.ssh/authorized_keys
|
|
|
|
EXPOSE 22
|
|
CMD ["/usr/sbin/sshd", "-D"]
|
|
|