We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1290414 commit 7cbc374Copy full SHA for 7cbc374
.gitignore
@@ -34,6 +34,7 @@ packlib_files.txt
34
/bin/*
35
!/bin/spc*
36
!/bin/setup-runtime*
37
+!/bin/docker-entrypoint.sh
38
39
# exclude windows build tools
40
/php-sdk-binary-tools/
bin/docker-entrypoint.sh
@@ -0,0 +1,11 @@
1
+#!/usr/bin/env bash
2
+set -e
3
+TARGET_DIR="/app/pkgroot/$(uname -m)-linux"
4
+BACKUP_DIR="/app/pkgroot-private"
5
+# copy private pkgroot to pkgroot if pkgroot is empty
6
+if [ ! -d "$TARGET_DIR" ] || [ -z "$(ls -A "$TARGET_DIR")" ]; then
7
+ echo "* Copying private pkgroot to pkgroot ..."
8
+ rm -rf "$TARGET_DIR"
9
+ cp -r "$BACKUP_DIR" "$TARGET_DIR"
10
+fi
11
+exec "$@"
0 commit comments