Skip to content

Commit fcbf246

Browse files
committed
Fix install ssh2
1 parent 3ad1cbb commit fcbf246

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-di
2727
pcntl shmop soap sockets wddx
2828

2929
# Install ssh2
30-
RUN wget https://www.libssh2.org/download/libssh2-1.8.0.tar.gz && wget https://pecl.php.net/get/ssh2-1.1.2.tgz \
31-
&& tar vxzf libssh2-1.8.0.tar.gz && tar vxzf ssh2-1.1.2.tgz \
32-
&& cd libssh2-1.8.0 && ./configure \
33-
&& make && make install \
34-
&& cd ../ssh2-1.1.2 && phpize && ./configure --with-ssh2 \
35-
&& make && make install \
36-
&& echo "extension=ssh2.so" >> /usr/local/etc/php/conf.d/ssh2.ini
30+
RUN apt-get update && apt-get -y install libssh2-1-dev && \
31+
pecl install -f ssh2-alpha && \
32+
echo "extension=ssh2.so" >> /usr/local/etc/php/conf.d/ssh2.ini && \
33+
rm -rf /var/lib/apt/lists/*
3734

3835
# Install oci8
3936
RUN apt-get update && apt-get -y install wget bsdtar libaio1 && \

0 commit comments

Comments
 (0)