Skip to content

Instantly share code, notes, and snippets.

@shoyan shoyan/Dockerfile
Created Mar 9, 2016

What would you like to do?
Dockerfile to build php5.2.
FROM ubuntu
USER root
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install build-essential
RUN apt-get -y install libxml2-dev
RUN apt-get -y install wget
RUN wget
RUN tar -xf php-5.2.17.tar.gz
WORKDIR php-5.2.17
RUN wget -O php-5.4.5.patch
# refs
RUN patch -p0 -b <./php-5.4.5.patch
RUN ./configure
RUN make
RUN make install
RUN php -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.