Skip to content

Commit 4b52f68

Browse files
committed
Fix tmp dir permission
1 parent 0635ead commit 4b52f68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ ARG TARGETARCH
135135

136136
# Blackfire
137137
RUN wget -O "/tmp/blackfire.tar.gz" https://blackfire.io/api/v1/releases/probe/php/alpine/${TARGETARCH}/${version/./} \
138-
&& tar -xzf /tmp/blackfire.tar.gz -C /tmp && mv /tmp/blackfire*.so /usr/lib/php${major}/modules/blackfire.so && clean \
138+
&& mkdir /tmp/bf && tar -xzf /tmp/blackfire.tar.gz -C /tmp/bf && chown -R root:root /tmp/bf \
139+
&& mv /tmp/bf/blackfire*.so /usr/lib/php${major}/modules/blackfire.so && clean \
139140
&& mkdir /var/run/blackfire \
140141
&& chmod a+x /var/run/blackfire/ "/usr/lib/php${major}/modules/blackfire.so" \
141142
&& echo -e "extension=blackfire.so\n" > "${PHP_INI_DIR}/conf.d/blackfire.ini"

0 commit comments

Comments
 (0)