Skip to content

Instantly share code, notes, and snippets.

@radityopw
Created December 18, 2025 13:25
Show Gist options
  • Select an option

  • Save radityopw/03e8527682992404c78a9e872c420297 to your computer and use it in GitHub Desktop.

Select an option

Save radityopw/03e8527682992404c78a9e872c420297 to your computer and use it in GitHub Desktop.
Docker Ubuntu 20.04 apache2 php mysqldriver
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