forked from forgejo/forgejo
Add environment variable support for Docker image (#2201)
* Add `gettext` dependencies as we need `envsubst` command; * Modified s6's gitea setup script, instead of `cp` the template if no `app.ini` exist, it will substitude the envvars and generate the new `app.ini`; * Make `/docker/etc/templates/app.ini` a template contains environment variables; Signed-off-by: Tao Wang <twang2218@gmail.com>
This commit is contained in:
parent
b0b24a2dbb
commit
d545e32b56
5 changed files with 42 additions and 2 deletions
|
@ -14,6 +14,7 @@ RUN apk --no-cache add \
|
|||
s6 \
|
||||
curl \
|
||||
openssh \
|
||||
gettext \
|
||||
tzdata
|
||||
RUN addgroup \
|
||||
-S -g 1000 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue