Files
cavepaintings/tests/docker-init.sh

13 lines
369 B
Bash

#!/bin/sh
groupadd -g $GID shimmie || true
useradd -ms /bin/bash -u $UID -g $GID shimmie
mkdir -p /app/data
chown $UID:$GID /app/data
export PHP_CLI_SERVER_WORKERS=8
exec /usr/local/bin/su-exec shimmie:shimmie \
/usr/bin/php \
-d upload_max_filesize=$UPLOAD_MAX_FILESIZE \
-d post_max_size=$UPLOAD_MAX_FILESIZE \
-S 0.0.0.0:8000 -q \
tests/router.php