This commit is contained in:
46
Dockerfile
46
Dockerfile
@ -8,7 +8,10 @@ FROM paramah/base:alpine as base-config
|
||||
#==================================================
|
||||
FROM php:${PHP_VERSION} as builder
|
||||
|
||||
RUN apk add --no-cache wget \
|
||||
RUN apk add --no-cache --virtual build-essentials \
|
||||
icu-dev icu-libs zlib-dev g++ make automake autoconf libzip-dev \
|
||||
libpng-dev libwebp-dev libjpeg-turbo-dev freetype-dev \
|
||||
wget \
|
||||
curl \
|
||||
bash \
|
||||
git \
|
||||
@ -33,39 +36,9 @@ RUN apk add --no-cache wget \
|
||||
|
||||
COPY docker/ /
|
||||
|
||||
# Configure php extensions
|
||||
# Configure & install php extensions
|
||||
RUN /usr/local/bin/php_configure.sh
|
||||
|
||||
|
||||
# Install php extensions
|
||||
RUN docker-php-ext-install -j$(nproc) \
|
||||
calendar \
|
||||
bcmath \
|
||||
bz2 \
|
||||
curl \
|
||||
fileinfo \
|
||||
gd \
|
||||
gettext \
|
||||
iconv \
|
||||
imap \
|
||||
intl \
|
||||
json \
|
||||
ldap \
|
||||
mbstring \
|
||||
opcache \
|
||||
pcntl \
|
||||
pdo \
|
||||
pdo_mysql \
|
||||
pdo_pgsql \
|
||||
pdo_sqlite \
|
||||
pgsql \
|
||||
phar \
|
||||
session \
|
||||
simplexml \
|
||||
soap \
|
||||
xml \
|
||||
zip
|
||||
|
||||
#
|
||||
# Final image
|
||||
#
|
||||
@ -74,13 +47,14 @@ FROM php:${PHP_VERSION}
|
||||
ARG ENVIRONMENT=production
|
||||
|
||||
# Add testing alpine repository
|
||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
||||
apk update
|
||||
# RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86" >> /etc/apk/repositories \
|
||||
# apk update
|
||||
|
||||
# install system libs
|
||||
RUN apk add --no-cache libintl c-client libpng icu-libs libldap libpq libjpeg freetype libzip shadow sudo fluent-bit td-agent-bit
|
||||
RUN apk add --no-cache libintl c-client libpng icu-libs libldap libpq libjpeg freetype libzip shadow sudo
|
||||
# fluent-bit td-agent-bit
|
||||
|
||||
# Install apps
|
||||
# Install appstall PHP modules"
|
||||
RUN apk add --no-cache wget curl bash git openssh supervisor nginx openssl zip
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user