Skip to content

Instantly share code, notes, and snippets.

@Xeckt
Last active March 27, 2021 18:15
Show Gist options
  • Save Xeckt/10b1e29f329a53f9a40b6534c869b94f to your computer and use it in GitHub Desktop.
Save Xeckt/10b1e29f329a53f9a40b6534c869b94f to your computer and use it in GitHub Desktop.
Phalcon PHP Dockerfile
FROM mileschou/phalcon:7.1-fpm
RUN apt-get update && apt-get install -y
wget \
sudo \
unzip \
zlib1g-dev \
libssl-dev \
libssh2-1 \
libssh2-1-dev \
libpng-dev \
libwebp-dev \
libjpeg62-turbo-dev \
libpng-dev \
libxpm-dev \
libfreetype6-dev \
libmcrypt-dev \
&& docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir \
--with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir \
--enable-gd-native-ttf
RUN wget https://github.com/Sean-Der/pecl-networking-ssh2/archive/php7.zip \
&& unzip php7.zip \
&& cd pecl-networking-ssh2-php7 \
&& phpize && ./configure \
&& sudo make install \
&& docker-php-ext-enable ssh2
RUN docker-php-ext-install mcrypt mbstring gd mysqli pdo pdo_mysql zip exif gettext ftp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment