mirror of
https://github.com/mleem97/gregWiki.git
synced 2026-04-10 19:19:18 +02:00
- Add docker-compose.yml (build context .) and .gitattributes for entrypoint LF - README: document docker compose and gregWiki root requirement - package.json: include docker-compose.yml in npm run format Made-with: Cursor
13 lines
589 B
Bash
13 lines
589 B
Bash
#!/bin/sh
|
|
set -e
|
|
if [ ! -f /app/package.json ]; then
|
|
echo "docker-entrypoint: ERROR: /app/package.json not found." >&2
|
|
echo " Build context must be the gregWiki repo root (the folder that contains package.json)." >&2
|
|
echo " Example: cd path/to/gregWiki && docker build -t gregwiki ." >&2
|
|
echo " Not: docker build -f gregWiki/Dockerfile .. (wrong context)" >&2
|
|
echo " Compose: run from gregWiki so build.context is '.' — see docker-compose.yml." >&2
|
|
echo " If you use a volume on /app, it must map to that repo root, not an empty dir." >&2
|
|
exit 1
|
|
fi
|
|
exec "$@"
|