Skip to content

Instantly share code, notes, and snippets.

@kniziol
Last active Nov 15, 2018
Embed
What would you like to do?
Simple Dockerfile PHP 7.2 CLI
FROM php:7.2-cli
MAINTAINER Krzysztof Nizioł <krzysztof@niziol.me>
#
# Tools & libraries
#
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
vim \
git \
unzip \
libicu-dev \
&& apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
#
# PHP extensions
#
RUN docker-php-ext-install \
intl \
mbstring
WORKDIR /project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment