Skip to content

Commit

Permalink
chore: include common CMD used across all libraries (#7)
Browse files Browse the repository at this point in the history
* chore: include common CMD used across all libraries

* fix: proper CMD settings

* fix: proper syntax

* chore: support overriding user/password

* fi: proper env syntax
  • Loading branch information
mdelapenya authored Apr 24, 2024
1 parent 37e7197 commit f6adcfa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
FROM alpine:3.19.1
RUN apk add --no-cache openssh && ssh-keygen -A && echo 'root:root' | chpasswd
RUN apk add --no-cache openssh && ssh-keygen -A

ENV USERNAME="root"
ENV PASSWORD="root"

ENTRYPOINT ["sh", "-c"]
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 comments on commit f6adcfa

Please sign in to comment.