Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-php
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CANALS Gerome
docker-php
Commits
30897a4f
Commit
30897a4f
authored
1 year ago
by
CANALS Gerome
Browse files
Options
Downloads
Patches
Plain Diff
8.2-ext from 8.2
parent
d69c66c5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
php/8.2-ext/Dockerfile
+10
-36
10 additions, 36 deletions
php/8.2-ext/Dockerfile
with
10 additions
and
36 deletions
php/8.2-ext/Dockerfile
+
10
−
36
View file @
30897a4f
# Use an official PHP runtime as a base image
FROM
php:8.2
-apache
FROM
canals/
php:8.2
RUN
apt-get update
&&
\
apt-get
install
--yes
--force-yes
\
cron g++ gettext libicu-dev openssl
\
libc-client-dev libkrb5-dev
\
libkrb5-dev
\
libxml2-dev libfreetype6-dev
\
libgd-dev libmcrypt-dev bzip2
\
libbz2-dev libtidy-dev libcurl4-openssl-dev
\
libz-dev libmemcached-dev libxslt-dev git-core libpq-dev
\
libzip4 libzip-dev libwebp-dev
libbz2-dev libxslt-dev
# PHP Configuration
RUN
docker-php-ext-install bcmath bz2 calendar dba exif gettext iconv intl soap tidy xsl zip sockets
&&
\
docker-php-ext-install mysqli pgsql pdo pdo_mysql pdo_pgsql
&&
\
docker-php-ext-configure gd
--with-freetype
--with-jpeg
--with-webp
&&
\
docker-php-ext-install gd
&&
\
docker-php-ext-configure imap
--with-kerberos
--with-imap-ssl
&&
\
docker-php-ext-install imap
&&
\
docker-php-ext-configure
hash
--with-mhash
&&
\
pecl
install
xdebug
&&
docker-php-ext-enable xdebug
&&
\
echo
"xdebug.mode=debug"
>>
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
&&
\
echo
"xdebug.client_host = host.docker.internal"
>>
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
&&
\
pecl
install
mongodb
&&
docker-php-ext-enable mongodb
&&
\
pecl
install
redis
&&
docker-php-ext-enable redis
&&
\
curl
-sS
https://getcomposer.org/installer | php
\
&&
mv
composer.phar /usr/bin/composer
RUN
docker-php-ext-install bcmath bz2 calendar dba exif soap xsl
RUN
docker-php-ext-install pdo-oci
RUN
docker-php-ext-configure gd
--with-freetype
--with-jpeg
--with-webp
&&
\
docker-php-ext-install gd
RUN
docker-php-ext-configure imap
--with-kerberos
--with-imap-ssl
&&
\
docker-php-ext-install imap
RUN
docker-php-ext-configure
hash
--with-mhash
&&
\
# Apache Configuration
RUN
a2enmod rewrite
# SSL
RUN
mv
/etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/000-default-ssl.conf
&&
\
a2enmod ssl
&&
\
a2ensite 000-default-ssl
&&
\
openssl req
-subj
'/CN=example.com/O=My Company Name LTD./C=US'
-new
-newkey
rsa:2048
-days
365
-nodes
-x509
-keyout
/etc/ssl/private/ssl-cert-snakeoil.key
-out
/etc/ssl/certs/ssl-cert-snakeoil.pem
EXPOSE
80
EXPOSE
443
# Imagemagick : install fails on 8.0
RUN
apt-get
install
--yes
--force-yes
libmagickwand-dev libmagickcore-dev
RUN
yes
''
| pecl
install
-f
imagick
&&
\
docker-php-ext-enable imagick
COPY
create_vhost config-vhost start /usr/local/bin/
COPY
php.ini /usr/local/etc/php/
CMD
["start"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment