Skip to content

Instantly share code, notes, and snippets.

@Semior001
Last active November 30, 2018 11:30
Show Gist options
  • Save Semior001/f72c4108c60e21b16629ece419f2320e to your computer and use it in GitHub Desktop.
Save Semior001/f72c4108c60e21b16629ece419f2320e to your computer and use it in GitHub Desktop.
# docker build
FROM ubuntu:latest
MAINTAINER SEMIOR <ura2178@gmail.com>
ENV TZ=Asia/Almaty \
HOST=localhost \
DOMAIN=localdomain \
INET_PROTOCOLS=ipv4 \
MAILNAME=localdomain \
MAIL_RELAY_HOST='' \
MAIL_RELAY_PORT='' \
MAIL_RELAY_USER='' \
MAIL_RELAY_PASS='' \
MAIL_VIRTUAL_FORCE_TO='' \
MAIL_VIRTUAL_ADDRESSES='' \
MAIL_VIRTUAL_DEFAULT='' \
MAIL_CANONICAL_DOMAINS='' \
MAIL_NON_CANONICAL_PREFIX='' \
MAIL_NON_CANONICAL_DEFAULT='' \
MESSAGE_SIZE_LIMIT=26214400
RUN apt-get update && \
apt-get upgrade -y && \
echo "deb http://kz.archive.ubuntu.com/ubuntu xenial main universe" >> /etc/apt/sources.list && \
echo "deb http://kz.archive.ubuntu.com/ubuntu cosmic main universe" >> /etc/apt/sources.list && \
apt-get update && \
apt-get upgrade -y && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
apt-get install php7.2 -y && \
apt-get install php7.2-curl -y && \
apt-get install php7.2-mbstring -y && \
apt-get install php7.2-cli -y && \
apt-get install php7.2-json -y && \
apt-get install php7.2-soap -y && \
apt-get install php7.2-opcache -y && \
apt-get install php7.2-xml -y && \
apt-get install php7.2-zip -y && \
apt-get install php7.2-gd -y && \
apt-get install php7.2-readline -y && \
apt-get install libapache2-mod-php7.2 -y && \
apt-get install libzip4 -y && \
apt-get install composer -y && \
apt-get install apache2 -y && \
apt-get update && \
apt-get upgrade -yqq && \
echo "postfix postfix/mailname string localdomain" | debconf-set-selections && \
echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections && \
apt-get install -yqq postfix rsyslog iproute2 wget && \
apt-get clean -yqq && \
apt-get autoclean -yqq && \
apt-get autoremove -yqq && \
rm -rf /var/cache/apt/archives/* /var/cache/apt/*.bin /var/lib/apt/lists/*
ENTRYPOINT ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment