dx/dxkit/templates/docker/Dockerfile.template

50 lines
1 KiB
Text

FROM ${BASE_APP_IMAGE}
RUN groupmod -g 1000 www-data && usermod -u 1000 -g www-data www-data
RUN apt-get update && apt-get install --no-install-recommends -y \
apt-transport-https \
gettext \
git \
unzip \
vim \
tree \
wget \
gnupg2 \
dialog \
nano \
libldap2-dev \
cron \
curl \
openssl \
jq \
openssh-server
# Install Xdebug
#RUN pecl install xdebug
#RUN docker-php-ext-enable xdebug
# Enable Apache mod_rewrite
RUN a2enmod rewrite
# Enable Apache SSL module
RUN a2enmod ssl
RUN a2dissite 000-default default-ssl
# Install Composer
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY dxkit/docker/entrypoint.sh /entrypoint.sh
RUN echo "root:Docker!" | chpasswd && chmod u+x /entrypoint.sh
RUN apt-get install -y locales && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
echo "pt_PT.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen && \
apt-get update
RUN rm -rf /var/lib/apt/lists/*
EXPOSE 80 443 2222
ENTRYPOINT [ "/entrypoint.sh" ]