File tree 2 files changed +43
-1
lines changed
2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM php:7.3.28-apache
2
+
3
+ LABEL maintainer="Injamul Mohammad Mollah <mrinjamul@gmail.com>"
4
+
5
+ RUN apt-get update -y && apt-get install -y \
6
+ libwebp-dev \
7
+ libjpeg62-turbo-dev \
8
+ libxpm-dev \
9
+ libfreetype6-dev \
10
+ libpng-dev \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ RUN docker-php-ext-install pdo pdo_mysql
14
+
15
+ RUN docker-php-ext-install mbstring fileinfo gettext exif
16
+
17
+ RUN docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir \
18
+ --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir
19
+
20
+ RUN docker-php-ext-install gd
21
+
22
+ RUN a2enmod rewrite
Original file line number Diff line number Diff line change 1
- # php-devel
1
+ # PHP Development Environment
2
+
2
3
This image is created for the containerized development purpose of PHP.
4
+
5
+ ## How to use?
6
+
7
+ cd into your PHP project root directory. then run the following command.
8
+
9
+ ``` shell
10
+ docker run --rm -d -p 8080:80 --name my_awesome_app -v " $PWD " :/var/www/html mrinjamul/php-devel:7.3.28
11
+ ```
12
+
13
+ Now go to [ http://localhost:8080 ] ( http://localhost:8080 ) . You can see the website is up.
14
+
15
+ ## Author
16
+
17
+ - Injamul Mohammad Mollah < mrinjamul@gmail.com >
18
+
19
+ ## License
20
+
21
+ - licensed under [ MIT] ( https://github.com/mrinjamul/php-devel/blob/main/LICENSE )
22
+
You can’t perform that action at this time.
0 commit comments