Created
June 19, 2018 03:54
-
-
Save jhuss/dbe102901449dcc1c9b98d3d0a1d6f95 to your computer and use it in GitHub Desktop.
Dockerfile: legacy php5.6 + mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:xenial | |
ENV DEBIAN_FRONTEND=noninteractive | |
# Install basics | |
RUN apt-get update | |
RUN apt-get install -y locales | |
RUN locale-gen en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
ENV LC_ALL en_US.UTF-8 | |
RUN apt-get install -y software-properties-common && \ | |
add-apt-repository ppa:ondrej/php && apt-get update | |
RUN apt-get install -y --force-yes curl git | |
# Install MySQL | |
RUN apt-get install -y mysql-server | |
# Install PHP 5.6 | |
RUN apt-get install -y --allow-unauthenticated php5.6 php5.6-fpm php5.6-mysql php5.6-mcrypt php5.6-cli php5.6-gd php5.6-curl | |
# Install composer | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
RUN mkdir /app | |
WORKDIR /app | |
CMD ["./run.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment