Skip to content

Commit f6adcfa

Browse files
authored
chore: include common CMD used across all libraries (#7)
* chore: include common CMD used across all libraries * fix: proper CMD settings * fix: proper syntax * chore: support overriding user/password * fi: proper env syntax
1 parent 37e7197 commit f6adcfa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
FROM alpine:3.19.1
2-
RUN apk add --no-cache openssh && ssh-keygen -A && echo 'root:root' | chpasswd
2+
RUN apk add --no-cache openssh && ssh-keygen -A
3+
4+
ENV USERNAME="root"
5+
ENV PASSWORD="root"
6+
7+
ENTRYPOINT ["sh", "-c"]
8+
CMD ["echo ${USERNAME}:${PASSWORD} | chpasswd && /usr/sbin/sshd -D -o PermitRootLogin=yes -o AddressFamily=inet -o GatewayPorts=yes -o AllowAgentForwarding=yes -o AllowTcpForwarding=yes -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostkeyAlgorithms=+ssh-rsa"]

0 commit comments

Comments
 (0)