Deploy with Docker Compose / deploy (push) Successful in 6s
Since app.ini is gitignored, the container needs to create it at runtime. The entrypoint copies the template on first start, then Gitea's env var overrides handle secrets. Co-Authored-By: Claude Opus 4.6 <[email protected]>
11 lines
263 B
Bash
Executable File
11 lines
263 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Generate app.ini from template if it doesn't already exist
|
|
if [ ! -f /etc/gitea/app.ini ]; then
|
|
cp /etc/gitea/app.ini.template /etc/gitea/app.ini
|
|
echo "Generated app.ini from template"
|
|
fi
|
|
|
|
exec /usr/local/bin/docker-entrypoint.sh "$@"
|