Created
December 18, 2025 13:25
-
-
Save radityopw/03e8527682992404c78a9e872c420297 to your computer and use it in GitHub Desktop.
Docker Ubuntu 20.04 apache2 php mysqldriver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:20.04 | |
| LABEL author="Radityo P W (radityo.p.w@gmail.com)" | |
| ENV DEBIAN_FRONTEND=noninteractive TZ="Asia/Jakarta" | |
| # UPDATE PACKAGES | |
| RUN apt update | |
| # INSTALL SYSTEM UTILITIES | |
| RUN apt install -y \ | |
| apache2 \ | |
| libapache2-mod-php \ | |
| php-curl \ | |
| php-mbstring \ | |
| php-mysql \ | |
| php-json | |
| RUN a2enmod rewrite | |
| RUN apt autoremove -y | |
| EXPOSE 80 | |
| CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment