Skip to content
Snippets Groups Projects

Proxy entrypoint

Closed Laurent Lecluse requested to merge proxy-entrypoint into master
9 files
+ 43
26
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 6
1
@@ -16,6 +16,11 @@ ENV PHP_VERSION=7.0
ENV APACHE_CONF_DIR=/etc/apache2 \
PHP_CONF_DIR=/etc/php/$PHP_VERSION
# On configure le proxy HTTP pour APT
RUN if [ "x$HTTP_PROXY" != "x" ] ; then \
echo "Acquire::http::proxy \"$HTTP_PROXY\";" > /etc/apt/apt.conf.d/proxy \
; fi
# Mise à niveau de la distrib
RUN apt-get -qq update
@@ -108,6 +113,6 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
RUN apt-get autoremove -y && apt-get clean && rm -rf /tmp/* /var/tmp/*
# Entry point
ADD entrypoint-${PHP_VERSION}.sh /sbin/entrypoint.sh
ADD entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh
CMD ["/sbin/entrypoint.sh"]
Loading