mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-22 15:06:54 +02:00
20 lines
482 B
Text
20 lines
482 B
Text
FROM alpine:3.12.0
|
|
|
|
ARG go_pkg_url
|
|
|
|
RUN apk add --update alpine-sdk linux-headers cmake openssh curl musl-dev go
|
|
|
|
|
|
RUN adduser -D -s /bin/ash jenkins && \
|
|
passwd -u jenkins && \
|
|
ssh-keygen -A && \
|
|
mkdir /home/jenkins/.ssh && \
|
|
chown -R jenkins:jenkins /home/jenkins
|
|
|
|
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"]
|
|
|