Removed unnessary dev debs
This commit is contained in:
parent
ab31f9a71b
commit
235df69f19
23
Dockerfile
23
Dockerfile
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
FROM php:7.3-fpm
|
FROM php:7.3-fpm
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y openssh-server libpq-dev unzip git libldap-dev \
|
RUN apt-get update && apt-get install -y openssh-server unzip git msmtp \
|
||||||
&& apt-get -y autoremove \
|
&& apt-get -y autoremove \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
@ -15,24 +15,25 @@ COPY www.conf /usr/local/etc/php-fpm.d/
|
|||||||
COPY sshd_config.patch /tmp/
|
COPY sshd_config.patch /tmp/
|
||||||
RUN (cd / && patch -p0 ) < /tmp/sshd_config.patch && rm /tmp/sshd_config.patch
|
RUN (cd / && patch -p0 ) < /tmp/sshd_config.patch && rm /tmp/sshd_config.patch
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y msmtp \
|
|
||||||
&& apt-get -y autoremove \
|
|
||||||
&& apt-get clean \
|
|
||||||
& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
||||||
|
|
||||||
COPY msmtprc /etc/
|
COPY msmtprc /etc/
|
||||||
RUN sed -i -e 's#^;sendmail_path =#sendmail_path = "/usr/bin/msmtp -t"#' /usr/local/etc/php/php.ini
|
RUN sed -i -e 's#^;sendmail_path =#sendmail_path = "/usr/bin/msmtp -t"#' /usr/local/etc/php/php.ini
|
||||||
|
|
||||||
EXPOSE 9000/tcp 22/tcp
|
EXPOSE 9000/tcp 22/tcp
|
||||||
|
|
||||||
RUN docker-php-ext-install -j$(nproc) pdo_mysql pdo_pgsql ldap gettext
|
|
||||||
|
|
||||||
# Enable phpredis
|
|
||||||
RUN pecl install -o -f igbinary && y | pecl install -o -f redis && docker-php-ext-enable redis igbinary && rm -rf /tmp/*
|
|
||||||
|
|
||||||
# Add composer
|
# Add composer
|
||||||
RUN curl https://getcomposer.org/installer|php -- --install-dir=/usr/local/bin --filename=composer
|
RUN curl https://getcomposer.org/installer|php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
|
||||||
|
# Mysql/Postgress/LDAP
|
||||||
|
RUN apt-get update && apt-get install -y openssh-server libpq5 libpq-dev unzip git libldap2-dev \
|
||||||
|
&& docker-php-ext-install -j$(nproc) pdo_mysql pdo_pgsql ldap gettext \
|
||||||
|
&& apt-get -y purge libpq-dev libldap2-dev \
|
||||||
|
&& apt-get -y autoremove \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
|
# Enable phpredis
|
||||||
|
RUN pecl install -o -f igbinary && pecl install -o -f redis && docker-php-ext-enable redis igbinary && rm -rf /tmp/*
|
||||||
|
|
||||||
COPY init /sbin/
|
COPY init /sbin/
|
||||||
RUN chmod 550 /sbin/init && chown 0:33 /sbin/init
|
RUN chmod 550 /sbin/init && chown 0:33 /sbin/init
|
||||||
ENTRYPOINT [ "/sbin/init" ]
|
ENTRYPOINT [ "/sbin/init" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user