Skip to content

Instantly share code, notes, and snippets.

@zzdjk6
Created August 13, 2018 08:32
Show Gist options
  • Save zzdjk6/8e4d7c94913b3cec207c73cd2fc28a22 to your computer and use it in GitHub Desktop.
Save zzdjk6/8e4d7c94913b3cec207c73cd2fc28a22 to your computer and use it in GitHub Desktop.
Dockerfile: php-cli
FROM ubuntu:18.04
MAINTAINER THOR CHEN "<[email protected]>"
RUN apt-get update && apt-get install -y tzdata && rm -rf /var/lib/apt/lists/*
ENV TZ Pacific/Auckland
RUN apt-get update && apt-get install -y \
php7.2 \
php7.2-mbstring \
php7.2-mysql \
php7.2-dom \
php7.2-gd \
php7.2-curl \
php7.2-tidy \
php7.2-intl \
php7.2-xdebug \
zip \
unzip \
nano \
composer \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /mnt/app
VOLUME /mnt/app
COPY xdebug.ini /etc/php/7.2/cli/conf.d/20-xdebug.ini
CMD /bin/bash
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=host.docker.internal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment