Skip to content

Commit d9720c5

Browse files
committedJun 3, 2021
Add Dockerfile
1 parent b1e8243 commit d9720c5

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed
 

‎Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

‎README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
1-
# php-devel
1+
# PHP Development Environment
2+
23
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+

0 commit comments

Comments
 (0)
Please sign in to comment.