summaryrefslogtreecommitdiffstats
path: root/Dockerfile.rootless
Commit message (Collapse)AuthorAgeFilesLines
* update docker image to latest go version (#18048)techknowlogick2021-12-201-2/+2
|
* Use shadowing script for docker (#17846)zeripath2021-12-011-2/+2
| | | | | | | | | | | | | | | | | | | | Too many docker users are caught out by the default location for the app.ini file being environment dependent so that when they docker exec into the container the gitea commands do not work properly and require additional -c arguments to correctly pick up the configuration. This PR simply shadows the gitea binary using variants of the FHS compatible script to make the command gitea have the default locations by default. Fix #14468 Reference #17497 Reference #12082 Reference #8941 ... amongst others ... Replace #17501 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix docker rootless build (#17441)wxiaoguang2021-10-261-1/+1
|
* chmod executables when copying to the docker (#17423)zeripath2021-10-251-1/+2
| | | | | | | | | Run chmod on the executables and the entrypoint when copying them to the docker in dockerfile. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Norwin <noerw@users.noreply.github.com> Co-authored-by: delvh <dev.lh@web.de>
* build with go1.17 (#16707)techknowlogick2021-08-171-1/+1
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* revert to use alpine 3.13 (#16451)techknowlogick2021-07-161-2/+2
| | | Co-authored-by: zeripath <art27@cantab.net>
* Fix #16387 - rootless Docker user (#16388)Jonathan Hult2021-07-091-1/+2
| | | Move comment to top of USER instruction
* specify user in rootless container numerically (#16361)Tobias Florek2021-07-081-1/+1
| | | | | | | | | | | | | * specify user in rootless container numerically With kubernetes' PodSecurityPolicy set to runAsNonRoot it will not allow starting the container. The error message is ``` Error: container has runAsNonRoot and image has non-numeric user (git), cannot verify user is non-root ``` The `USER` directive has to be numerical for that to work. * mention the name of the uid/gid Co-authored-by: 6543 <6543@obermui.de>
* Alpine 3.14 released (#16170)techknowlogick2021-07-071-2/+2
| | | | Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* Change default TMPDIR path in rootless containers (#16077)Steven2021-06-061-0/+2
| | | Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
* Add curl to rootless docker image (#15908)Steven2021-05-211-0/+1
| | | | | Signed-off-by: JustusBunsi <61625851+justusbunsi@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Remove random password in Dockerfiles (#15362)Martin Michaelis2021-04-291-2/+1
| | | | | * Remove random password of git user in dockerfile * Disable git user account in rootless dockerfile
* go1.16 (#14783)techknowlogick2021-02-281-1/+1
|
* Add environment-to-ini to docker image (#14762)Kyle D2021-02-231-0/+4
| | | | | | | | | | | * Add environment-to-app.ini routine * Call environment-to-ini in docker setup scripts * Automatically convert section vars to lower case to match documentation * Remove git patch instructions * Add env variable documentation to Install Docker
* upgrade to alpine 3.13 (#14343)techknowlogick2021-01-201-2/+2
|
* When building rootless docker image move chown&chmod to build stage (#13578)Lauris BH2020-11-151-2/+1
| | | | | | | | | | | | | * When building rootless docker image move chown&chmod to build stage Fixes #13577 * Fix command newlines * Move chown to COPY command * Seems to be working also without chmod Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* docker: rootless image (#10154)Antoine GIRARD2020-10-311-0/+68
* docker: rootless image * improve docs + remove check for write perm on custom * add more info on ssh passtrough * Add comment for internal ssh server in container config