Skip to content

Instantly share code, notes, and snippets.

@vkuberan
Last active December 12, 2021 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vkuberan/832fbeb5799f07a35e05473b47c843af to your computer and use it in GitHub Desktop.
Save vkuberan/832fbeb5799f07a35e05473b47c843af to your computer and use it in GitHub Desktop.
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Kolkata
LABEL maintainer="vkuberan@gmail.com"
CMD echo "Installing Latest Ubuntu along with Apache and PHP...."
RUN apt-get update && apt-get upgrade
RUN apt-get install -y \
iputils-ping \
vim \
systemctl \
git \
apache2 \
apache2-utils \
mariadb-client \
php \
libapache2-mod-php \
php-mysql \
php-curl \
php-gd \
php-mbstring \
php-xml \
php-soap \
php-intl \
php-zip
COPY 000-default.conf /etc/apache2/sites-available/
CMD a2enmod rewrite
CMD systemctl restart apache2
RUN apt clean
EXPOSE 80
ENTRYPOINT apachectl -D FOREGROUND
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment