Public Repository

Last pushed: 3 months ago
Short Description
alpine: gcc + go + ssh
Full Description

based on sickp/alpine-sshd

Dockerfile:
FROM golang:alpine
RUN apk update && apk upgrade && apk add --no-cache gcc musl-dev make curl p7zip openssh \
&& sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config \
&& echo "root:alpinego" | chpasswd
EXPOSE 22
ENTRYPOINT ["/entrypoint.sh"]
COPY entrypoint.sh /

entrypoint.sh:

#!/bin/sh
ifconfig | grep addr
ssh-keygen -A
exec /usr/sbin/sshd -D

run:
docker container run -d --rm --publish 2222:22 nggy/alpine-go-dev

ssh:
main_ip:2222
root/alpinego

Docker Pull Command
Owner
nggy

Comments (0)