Skip to content

Commit

Permalink
Added docker files for lumen
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-sahil committed Mar 15, 2021
1 parent 963116c commit 25ce480
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Dockerfile.lumen_builder
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Pull latest ubuntu image
FROM ubuntu:latest

MAINTAINER Sahil Darji<[email protected]>

ENV DEBIAN_FRONTEND noninteractive

#Install dependencies & php
RUN apt-get update && apt-get install -y \
software-properties-common \
&& add-apt-repository ppa:ondrej/php -y && apt-get install -y \
build-essential \
unzip \
curl \
php7.3 \
php7.3-common \
php7.3-cli \
php7.3-gd \
php7.3-mysql \
php7.3-curl \
php7.3-intl \
php7.3-mbstring \
php7.3-bcmath \
php7.3-imap \
php7.3-xml \
php7.3-zip \
php7.3-cli \
php7.3-sqlite3 \
php7.3-msgpack \
php7.3-pgsql \
php7.3-soap \
php7.3-memcached \
php7.3-igbinary \
libpng-dev \
autoconf \
libtool \
nasm \
&& rm -rf /var/lib/apt/lists/*

#Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer



67 changes: 67 additions & 0 deletions Dockerfile.lumen_runner
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
FROM php:7.3-apache-stretch

MAINTAINER Sahil Darji<[email protected]>

#Add apt packages dependencies for PHP extensions
RUN apt-get update && apt-get install -y \
libmagickwand-dev \
libxml2-dev \
sendmail \
libpng-dev \
zlib1g-dev \
libgmp-dev \
libc-client-dev \
libkrb5-dev \
zlib1g-dev \
libicu-dev \
g++ \
libpq-dev \
libzip-dev \
libxslt-dev \
libjpeg62-turbo-dev \
pkg-config \
patch \
libpng-dev \
libfreetype6-dev \
&& rm -rf /var/lib/apt/lists/*

#Install IGBINARY from source
ENV EXT_IGBINARY_VERSION=3.0.1
RUN docker-php-source extract && \
mkdir -p /usr/src/php/ext/igbinary && \
curl -fsSL https://github.com/igbinary/igbinary/archive/$EXT_IGBINARY_VERSION.tar.gz | tar xvz -C /usr/src/php/ext/igbinary --strip 1

#Enable extensions
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl

#gd setup for jpeg
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/

RUN docker-php-ext-install \
exif \
gd \
gettext \
gmp \
imap \
intl \
bcmath \
calendar \
dba \
mysqli \
pcntl \
pdo_mysql \
pdo_pgsql \
pgsql \
shmop \
soap \
sockets \
sysvmsg \
sysvsem \
sysvshm \
wddx \
zip \
igbinary \
xsl \
opcache

RUN a2enmod rewrite negotiation

0 comments on commit 25ce480

Please sign in to comment.