Skip to content

Commit b28a80e

Browse files
committed
fix antidote for 8.1 and 7.4
1 parent 787f329 commit b28a80e

File tree

2 files changed

+22
-24
lines changed

2 files changed

+22
-24
lines changed

apache/7.4/Dockerfile

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,18 @@ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
103103
&& mv /tmp/blackfire/blackfire /usr/bin/blackfire \
104104
&& rm -rf /tmp/blackfire
105105

106-
# RUN a2enmod rewrite headers ssl
107-
RUN a2enmod rewrite headers
106+
COPY copy/base copy/apache /
108107

109-
RUN git clone --depth=1 https://github.com/mattmc3/antidote.git /root/.antidote \
110-
&& antidote bundle < /root/.zsh_plugins.txt > /root/.zsh_plugins.sh
111-
112-
COPY copy/base /
113-
COPY copy/apache /
114-
115-
# Add GITHUB_API_TOKEN support for composer
116-
RUN chmod 700 \
117-
/usr/local/bin/docker-php-entrypoint \
118-
/usr/local/bin/composer \
108+
RUN set -ex \
109+
# Apache modules
110+
&& a2enmod rewrite headers ssl \
111+
# antidote
112+
&& git clone --depth=1 https://github.com/mattmc3/antidote.git /root/.antidote \
113+
&& zsh /root/setup.zsh \
114+
# Add GITHUB_API_TOKEN support for composer
115+
&& chmod 700 \
116+
/usr/local/bin/docker-php-entrypoint \
117+
/usr/local/bin/composer \
119118
# Install composer
120119
&& curl -sS https://getcomposer.org/installer | php -- \
121120
--filename=composer.phar \

apache/8.1/Dockerfile

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,18 @@ RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
9191
&& printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > $PHP_INI_DIR/conf.d/blackfire.ini \
9292
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
9393

94-
# RUN a2enmod rewrite headers ssl
95-
RUN a2enmod rewrite headers
94+
COPY copy/base copy/apache /
9695

97-
RUN git clone --depth=1 https://github.com/mattmc3/antidote.git /root/.antidote \
98-
&& antidote bundle < /root/.zsh_plugins.txt > /root/.zsh_plugins.sh
99-
100-
COPY copy/base /
101-
COPY copy/apache /
102-
103-
# Add GITHUB_API_TOKEN support for composer
104-
RUN chmod 700 \
105-
/usr/local/bin/docker-php-entrypoint \
106-
/usr/local/bin/composer \
96+
RUN set -ex \
97+
# Apache modules
98+
&& a2enmod rewrite headers ssl \
99+
# antidote
100+
&& git clone --depth=1 https://github.com/mattmc3/antidote.git /root/.antidote \
101+
&& zsh /root/setup.zsh \
102+
# Add GITHUB_API_TOKEN support for composer
103+
&& chmod 700 \
104+
/usr/local/bin/docker-php-entrypoint \
105+
/usr/local/bin/composer \
107106
# Install composer
108107
&& curl -sS https://getcomposer.org/installer | php -- \
109108
--filename=composer.phar \

0 commit comments

Comments
 (0)