Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8225715
build-image
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
576 B
Referenced Files
None
Subscribers
None
build-image
View Options
#!/bin/bash
set
-x
set
-e
pwd
if
[
-z
"
${
GIT_URI
}
"
]
;
then
echo
"No GIT_URI specified. Exiting."
exit
1
fi
git clone -b
${
GIT_BRANCH
:-
master
}
${
GIT_URI
}
cd
$(
basename
${
GIT_URI
}
.git
)
if
[
! -z
"
${
APP_SRC
}
"
]
;
then
cd
${
APP_SRC
}
fi
if
[
-f
"composer.json"
]
;
then
echo
"Detected composer.json, running install"
php -dmemory_limit
=
${
COMPOSER_MEMORY_LIMIT
:-
-1
}
/usr/bin/composer install
${
COMPOSER_ARGS
}
rm -rf ~/.cache/composer/
fi
if
[
-z
"
${
LARAVEL_ENV
}
"
]
;
then
LARAVEL_ENV
=
prod
fi
npm install
npm run
${
LARAVEL_ENV
}
&&
rm -rf ~/.npm/
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Jul 10, 12:24 AM (1 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1057585
Default Alt Text
build-image (576 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment