@@ -39,30 +39,30 @@ RUN docker-php-source extract && \
39
39
docker-php-ext-enable xdebug redis && \
40
40
docker-php-source delete
41
41
42
- # Install php extensions
42
+ # Install extra extensions
43
43
RUN set -ex \
44
- && pecl install igbinary zip \
45
- && docker-php-ext-enable igbinary zip \
44
+ && pecl install igbinary zip apcu-5.1.12 \
45
+ && docker-php-ext-enable igbinary zip apcu \
46
46
&& docker-php-ext-install pdo bcmath curl intl pdo_mysql pdo_pgsql soap xml xmlrpc json readline \
47
47
sodium calendar simplexml tidy xmlrpc \
48
48
&& CFLAGS="-I/usr/src/php" docker-php-ext-install xmlreader
49
49
50
50
# Install sshd
51
- RUN apk --update add --no-cache openssh bash \
52
- && sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config \
53
- && echo "root:root" | chpasswd \
54
- && rm -rf /var/cache/apk/*
55
- RUN sed -ie 's/#Port 22/Port 22/g' /etc/ssh/sshd_config
56
- RUN sed -ri 's/#HostKey \/ etc\/ ssh\/ ssh_host_key/HostKey \/ etc\/ ssh\/ ssh_host_key/g' /etc/ssh/sshd_config
57
- RUN sed -ir 's/#HostKey \/ etc\/ ssh\/ ssh_host_rsa_key/HostKey \/ etc\/ ssh\/ ssh_host_rsa_key/g' /etc/ssh/sshd_config
58
- RUN sed -ir 's/#HostKey \/ etc\/ ssh\/ ssh_host_dsa_key/HostKey \/ etc\/ ssh\/ ssh_host_dsa_key/g' /etc/ssh/sshd_config
59
- RUN sed -ir 's/#HostKey \/ etc\/ ssh\/ ssh_host_ecdsa_key/HostKey \/ etc\/ ssh\/ ssh_host_ecdsa_key/g' /etc/ssh/sshd_config
60
- RUN sed -ir 's/#HostKey \/ etc\/ ssh\/ ssh_host_ed25519_key/HostKey \/ etc\/ ssh\/ ssh_host_ed25519_key/g' /etc/ssh/sshd_config
61
- RUN /usr/bin/ssh-keygen -A
62
- RUN ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_key
51
+ # RUN apk --update add --no-cache openssh bash \
52
+ # && sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config \
53
+ # && echo "root:root" | chpasswd \
54
+ # && rm -rf /var/cache/apk/*
55
+ # RUN sed -ie 's/#Port 22/Port 22/g' /etc/ssh/sshd_config
56
+ # RUN sed -ri 's/#HostKey \/etc\/ssh\/ssh_host_key/HostKey \/etc\/ssh\/ssh_host_key/g' /etc/ssh/sshd_config
57
+ # RUN sed -ir 's/#HostKey \/etc\/ssh\/ssh_host_rsa_key/HostKey \/etc\/ssh\/ssh_host_rsa_key/g' /etc/ssh/sshd_config
58
+ # RUN sed -ir 's/#HostKey \/etc\/ssh\/ssh_host_dsa_key/HostKey \/etc\/ssh\/ssh_host_dsa_key/g' /etc/ssh/sshd_config
59
+ # RUN sed -ir 's/#HostKey \/etc\/ssh\/ssh_host_ecdsa_key/HostKey \/etc\/ssh\/ssh_host_ecdsa_key/g' /etc/ssh/sshd_config
60
+ # RUN sed -ir 's/#HostKey \/etc\/ssh\/ssh_host_ed25519_key/HostKey \/etc\/ssh\/ssh_host_ed25519_key/g' /etc/ssh/sshd_config
61
+ # RUN /usr/bin/ssh-keygen -A
62
+ # RUN ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_key
63
63
64
64
# Expose port 80
65
65
EXPOSE 80
66
66
67
67
# Expose port 22
68
- EXPOSE 22
68
+ # EXPOSE 22
0 commit comments