Adding SSH for Ubuntu

stevengoossensB 2020-02-10 19:29:17 +01:00 committed by GitHub
parent 554ff2079f
commit ae4c6b5802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -24,6 +24,11 @@ RUN apt-get install -y libapache2-mod-php php php-dev php-json \
php-mysql php-redis php-xml php-mbstring \
php-gd php-pear php-opcache \
pkg-config libbson-1.0 libmongoc-1.0-0
# Add openSSH for Azure
RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd && echo "root:Docker!" | chpasswd
COPY sshd_config /etc/ssh/
# Fix php.ini with recommended settings
RUN sed -i \
@ -186,8 +191,8 @@ RUN chmod 0755 /run.sh && touch /.firstboot.tmp
WORKDIR /var/www/MISP
RUN tar czpf /root/MISP.tgz .
RUN apk add openssh && echo "root:Docker!" | chpasswd
COPY sshd_config /etc/ssh/
echo "root:Docker!" | chpasswd
VOLUME /var/www/MISP