Fixed docker example sshd init

This commit is contained in:
Olof Hagsand 2022-12-12 09:49:05 +01:00
parent 61e2f014be
commit 7621b2f2f3
4 changed files with 28 additions and 9 deletions

View file

@ -93,15 +93,19 @@ RUN apk add --update flex bison
# need to add www user manually
RUN adduser -D -H -G www-data www-data
RUN apk add --update openssl
# nghttp2 dependencies
RUN apk add --update nghttp2
# openssl and nghttp2 dependencies
RUN apk add --update openssl nghttp2
# Expose https port for restconf
EXPOSE 80/tcp
EXPOSE 443/tcp
# Add sshd
RUN apk add --update openrc openssh
RUN rc-update add sshd
RUN rc-status
RUN echo "Subsystem netconf /usr/local/bin/clixon_netconf" >> /etc/ssh/sshd_config
# Create clicon user and group
RUN adduser -D -H clicon