Skip to content

Instantly share code, notes, and snippets.

@pisculichi
Created September 18, 2018 02:38
Show Gist options
  • Save pisculichi/ab942f80e2a0397294e06286e3ca145e to your computer and use it in GitHub Desktop.
Save pisculichi/ab942f80e2a0397294e06286e3ca145e to your computer and use it in GitHub Desktop.
# 1 "Dockerfile.in"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "Dockerfile.in"
FROM php:5.5-fpm-alpine
# 1 "../maintainer.docker" 1
MAINTAINER "daper <david@daper.email>"
# 5 "Dockerfile.in" 2
# 1 "../install-packages.docker" 1
RUN printf "\n%s\n%s" "@edge http://dl-cdn.alpinelinux.org/alpine/edge/main" "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk --update upgrade \
&& apk add autoconf automake make gcc g++ libtool pkgconfig libmcrypt-dev re2c libressl@edge libressl-dev@edge git zlib-dev xdg-utils libpng-dev freetype-dev libjpeg-turbo-dev openssh-client libxslt-dev ca-certificates gmp-dev \
&& update-ca-certificates
# 7 "Dockerfile.in" 2
# 1 "../ext/common.docker" 1
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) gd curl mcrypt mysqli pdo_mysql bcmath zip xml xmlreader xmlwriter simplexml soap json iconv fileinfo dom xsl pcntl pdo sockets gmp
# 15 "Dockerfile.in" 2
# 1 "../ext/ssh2.docker" 1
# 11 "../ext/ssh2.docker"
RUN apk add libssh2-dev@edge \
&& pecl install ssh2 \
&& docker-php-ext-enable ssh2
# 1 "../composer.docker" 1
RUN curl -sS "https://getcomposer.org/installer" | php
RUN mv composer.phar /usr/local/bin/composer
# 19 "Dockerfile.in" 2
# 1 "../conf.docker" 1
#COPY php.ini /usr/local/etc/php/conf.d/custom.ini
#COPY fpm.conf /usr/local/etc/php-fpm.d/zzz-fpm.conf
RUN apk add vim nano
RUN adduser -D -s /bin/bash ignacio
WORKDIR /var/www
# 21 "Dockerfile.in" 2
# 1 "../clean.docker" 1
RUN rm -rf /var/cache/apk && mkdir -p /var/cache/apk
# 22 "Dockerfile.in" 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment