Added SSH to wordpress image
This commit is contained in:
parent
157ab8609b
commit
eb07d5f1f9
12
Dockerfile
12
Dockerfile
@ -1,13 +1,9 @@
|
|||||||
# NAME leenooks/php
|
# NAME leenooks/wordpress
|
||||||
# VERSION 7.1-fpm-plus
|
# VERSION 4.9.1-fpm
|
||||||
|
|
||||||
FROM php:7.1-fpm
|
FROM wordpress:4.9.1-fpm
|
||||||
RUN echo "deb http://deb.debian.org/debian jessie non-free" >> /etc/apt/sources.list.d/non-free.list && apt-get update && apt-get install -y pkg-config libbz2-dev libgmp-dev libpng-dev libjpeg-dev libfreetype6-dev libsnmp-dev snmp-mibs-downloader \
|
|
||||||
&& download-mibs \
|
|
||||||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include/ \
|
|
||||||
&& docker-php-ext-install -j$(nproc) pdo_mysql bz2 gettext sockets gmp gd pcntl snmp
|
|
||||||
|
|
||||||
RUN apt-get install -y openssh-server && useradd -c "Hosting Admin User" -u 1000 -g users -G www-data -d /var/www/html -M lamp
|
RUN apt-get update && apt-get install -y openssh-server && useradd -c "Hosting Admin User" -u 1000 -g users -G www-data -d /var/www/html -M lamp
|
||||||
EXPOSE 9000/tcp 22/tcp
|
EXPOSE 9000/tcp 22/tcp
|
||||||
|
|
||||||
COPY sshd_config.patch /tmp
|
COPY sshd_config.patch /tmp
|
||||||
|
@ -1,20 +1,18 @@
|
|||||||
--- /etc/ssh/sshd_config.orig 2017-12-13 10:12:21.098005827 +0000
|
--- /etc/ssh/sshd_config.orig 2017-12-17 13:08:18.460496574 +0000
|
||||||
+++ /etc/ssh/sshd_config 2017-12-13 10:14:11.461687661 +0000
|
+++ /etc/ssh/sshd_config 2017-12-17 13:10:01.093459593 +0000
|
||||||
@@ -25,7 +25,7 @@
|
@@ -30,6 +30,7 @@
|
||||||
|
|
||||||
# Authentication:
|
#LoginGraceTime 2m
|
||||||
LoginGraceTime 120
|
#PermitRootLogin prohibit-password
|
||||||
-PermitRootLogin without-password
|
|
||||||
+PermitRootLogin no
|
+PermitRootLogin no
|
||||||
StrictModes yes
|
#StrictModes yes
|
||||||
|
#MaxAuthTries 6
|
||||||
|
#MaxSessions 10
|
||||||
|
@@ -54,6 +55,7 @@
|
||||||
|
|
||||||
RSAAuthentication yes
|
# To disable tunneled clear text passwords, change to no here!
|
||||||
@@ -49,7 +49,7 @@
|
#PasswordAuthentication yes
|
||||||
ChallengeResponseAuthentication no
|
|
||||||
|
|
||||||
# Change to no to disable tunnelled clear text passwords
|
|
||||||
-#PasswordAuthentication yes
|
|
||||||
+PasswordAuthentication no
|
+PasswordAuthentication no
|
||||||
|
#PermitEmptyPasswords no
|
||||||
|
|
||||||
# Kerberos options
|
# Change to yes to enable challenge-response passwords (beware issues with
|
||||||
#KerberosAuthentication no
|
|
||||||
|
Loading…
Reference in New Issue
Block a user