This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/tests/docker-init.sh

13 lines
327 B
Bash
Raw Normal View History

2019-02-02 12:06:21 +00:00
#!/bin/sh
2020-03-22 15:23:23 +00:00
groupadd -g $GID shimmie
useradd -ms /bin/bash -u $UID -g $GID shimmie
mkdir /app/data
chown shimmie:shimmie /app/data
export PHP_CLI_SERVER_WORKERS=8
exec /usr/local/bin/su-exec shimmie:shimmie \
/usr/bin/php \
-d upload_max_filesize=50M \
-d post_max_size=50M \
-S 0.0.0.0:8000 \
tests/router.php