File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed
Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,13 @@ COPY ./composer.* /app/
123123ADD ./bin /app/bin
124124RUN composer install --no-dev
125125ADD ./config /app/config
126- RUN PKG_ROOT_PATH=/app/pkgroot-private bin/spc doctor --auto-fix
127- RUN PKG_ROOT_PATH=/app/pkgroot-private bin/spc install-pkg upx
126+ RUN bin/spc doctor --auto-fix
127+ RUN bin/spc install-pkg upx
128+
129+ RUN mv /app/pkgroot/\$ (uname -m)-linux /app/pkgroot-private
130+ ADD bin/docker-entrypoint.sh /bin/docker-entrypoint.sh
131+ RUN chmod +x /bin/docker-entrypoint.sh
132+ ENTRYPOINT ["/bin/docker-entrypoint.sh"]
128133EOF
129134fi
130135
Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ ENV SPC_LIBC=glibc
112112ENV PATH="/app/bin:/cmake/bin:/opt/rh/devtoolset-10/root/usr/bin:\$ PATH"
113113
114114ADD ./config /app/config
115- RUN CC=gcc PKG_ROOT_PATH=/app/pkgroot-private bin/spc doctor --auto-fix --debug
116- RUN PKG_ROOT_PATH=/app/pkgroot-private bin/spc install-pkg upx
115+ RUN CC=gcc bin/spc doctor --auto-fix --debug
116+ RUN bin/spc install-pkg upx
117117RUN if [ -f /app/buildroot/bin/re2c ]; then \
118118 cp /app/buildroot/bin/re2c /usr/local/bin/re2c ;\
119119 fi
@@ -133,6 +133,11 @@ RUN curl -o automake.tgz -fsSL https://ftp.gnu.org/gnu/automake/automake-1.17.ta
133133 make && \
134134 make install && \
135135 ln -sf /usr/local/bin/automake /usr/bin/automake
136+
137+ RUN mv /app/pkgroot/\$ (uname -m)-linux /app/pkgroot-private
138+ ADD bin/docker-entrypoint.sh /bin/docker-entrypoint.sh
139+ RUN chmod +x /bin/docker-entrypoint.sh
140+ ENTRYPOINT ["/bin/docker-entrypoint.sh"]
136141EOF
137142fi
138143
Original file line number Diff line number Diff line change 2222// output path for shared extensions
2323define ('BUILD_MODULES_PATH ' , FileSystem::convertPath (is_string ($ a = getenv ('BUILD_MODULES_PATH ' )) ? $ a : (BUILD_ROOT_PATH . '/modules ' )));
2424
25- define ('PKG_ROOT_PATH ' , FileSystem::convertPath (is_string ($ a = getenv ('PKG_ROOT_PATH ' )) ? $ a : (WORKING_DIR . '/pkgroot ' )));
25+ // pkg arch name
26+ $ _pkg_arch_name = arch2gnu (php_uname ('m ' )) . '- ' . strtolower (PHP_OS_FAMILY );
27+ define ('PKG_ROOT_PATH ' , FileSystem::convertPath (is_string ($ a = getenv ('PKG_ROOT_PATH ' )) ? $ a : (WORKING_DIR . "/pkgroot/ {$ _pkg_arch_name }" )));
28+
2629define ('SOURCE_PATH ' , FileSystem::convertPath (is_string ($ a = getenv ('SOURCE_PATH ' )) ? $ a : (WORKING_DIR . '/source ' )));
2730define ('DOWNLOAD_PATH ' , FileSystem::convertPath (is_string ($ a = getenv ('DOWNLOAD_PATH ' )) ? $ a : (WORKING_DIR . '/downloads ' )));
2831define ('CPU_COUNT ' , match (PHP_OS_FAMILY ) {
You can’t perform that action at this time.
0 commit comments