aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
AgeCommit message (Collapse)Author
2023-02-21Add Bash and Zsh completion scripts (#22646)zeripath
This PR adds contrib scripts for bash and zsh completion. Simply call: ```bash source contrib/autocompletion/bash_autocomplete ``` or for Zsh: ```bash source contrib/autocompletion/zsh_autocomplete ``` Signed-off-by: Andrew Thornton <art27@cantab.net> --------- Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: a1012112796 <1012112796@qq.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2023-02-03update to build with go1.20 (#22732)techknowlogick
as title --------- Co-authored-by: Lauris BH <lauris@nix.lv>
2022-12-02Update to Alpine 3.17 (#21904)flynnnnnnnnnn
This pull request is for updating the base docker images to build with the latest version of Alpine.
2022-08-07Switch to building with go1.19 (#20695)techknowlogick
2022-05-25alpine 3.16 (#19797)techknowlogick
Co-authored-by: 6543 <6543@obermui.de>
2022-03-16use go1.18 to build gitea (#19099)techknowlogick
* use go1.18 to build gitea& update min go version to 1.17 * bump in a few more places * add a few simple tests for isipprivate * update go.mod * update URL to https://go.dev/dl/ * golangci-lint * attempt golangci-lint workaround * change version * bump fumpt version * skip strings.title test * go mod tidy * update tests as some aren't private?? * update tests
2022-01-19Upgrade Alpine from 3.13 to 3.15 (#18050)v1.17.0-devGrzegorz Alibożek
* Upgrade alpine to 3.15 * Add executability test to entrypoint for too old dockers Signed-off-by: Andrew Thornton <art27@cantab.net> * Update docker/rootless/usr/local/bin/docker-entrypoint.sh Co-authored-by: zeripath <art27@cantab.net>
2021-12-20update docker image to latest go version (#18048)techknowlogick
2021-12-01Use shadowing script for docker (#17846)zeripath
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>
2021-10-25chmod executables when copying to the docker (#17423)zeripath
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>
2021-08-17build with go1.17 (#16707)techknowlogick
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-07-16revert to use alpine 3.13 (#16451)techknowlogick
Co-authored-by: zeripath <art27@cantab.net>
2021-07-07Alpine 3.14 released (#16170)techknowlogick
Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
2021-04-29Remove random password in Dockerfiles (#15362)Martin Michaelis
* Remove random password of git user in dockerfile * Disable git user account in rootless dockerfile
2021-02-28go1.16 (#14783)techknowlogick
2021-02-23Add environment-to-ini to docker image (#14762)Kyle D
* 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
2021-01-20upgrade to alpine 3.13 (#14343)techknowlogick
2020-10-31Revert "Dockerfile: Support socat use cases (#13208)" (#13369)Antoine GIRARD
This reverts commit ff50274ff34e4342d8f6b9470345a1df341d8428.
2020-10-21Dockerfile: Support socat use cases (#13208)Begley Brothers (Development)
* Dockerfile: Support socat use cases In some contexts it is necessary to provide access to Gitea via TCP ports and unix sockets. Gitea (`gitea web`) can be configured to listen for connections via unix-socket or TCP port, but not both. When Gitea is installed to the host this limitation can be worked around by installing socat on the host. When running Gitea from a container this limitation cannot be workaround. Add socat to Gitea container. * Removed version Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-09-27Update Dockerfile (#12922)Antoine GIRARD
2020-08-13go1.15 (#12475)techknowlogick
* go1.15 * update makefile xgo version * fix vet issue * update docs to version of go in use * add TODO for asyncpreemptoff Co-authored-by: Lauris BH <lauris@nix.lv>
2020-06-06Fix missing CGO_EXTRA_FLAGS build arg for docker (#11782)Cirno the Strongest
Co-authored-by: zeripath <art27@cantab.net>
2020-06-03Alpine 3.12 (#11720)techknowlogick
* increase alpine to 3.12 * Update .drone.yml
2020-05-10Add gnupg to Dockerfile (#11365)Cirno the Strongest
Co-authored-by: zeripath <art27@cantab.net>
2020-03-20go 1.14 (#10467)techknowlogick
2020-03-03Frontend build improvements, fix Fomantic build (#10576)silverwind
- add package-lock.json to webpack/fomantic prereqs making them always rebuild when dependencies change. - remove FOMANTIC_EVIDENCE. It seemed better to just track a few output files instead. - delete fomantic output files before build to prevent possible bugs in fomantic's build. - resolve WEBPACK_SOURCES only once for performance - reorder variables for clarity - use clean-all in Dockerfile - detect busybox for find syntax Fixes: https://github.com/go-gitea/gitea/issues/10569 Fixes: https://github.com/go-gitea/gitea/issues/10565 Fixes: https://github.com/go-gitea/gitea/issues/10570 Fixes: https://github.com/go-gitea/gitea/issues/10568
2019-12-26alpine 3.11 (#9440)techknowlogick
2019-12-05Fix latest docker image haven't include static files. (#9252)Lunny Xiao
* add warnging on docs * fix docs
2019-12-05Add Node.js build dep, remove built js/css files (#9114)silverwind
- Added Node.js as build dependency and removes build files from git. - Added version checks for both Go and Node.js. - Overhauled the js/css make target to only run when needed. - Merged the `generate` make target into `build` as per suggestion. Fixes: https://github.com/go-gitea/gitea/issues/6782 Fixes: https://github.com/go-gitea/gitea/issues/9216
2019-09-12use go 1.13 (#8088)techknowlogick
* use go 1.13 * use go 1.13 in gomod file * Update Makefile * update swagger deps
2019-08-05build: use GOPROXY and disable download on some steps (#7745)Antoine GIRARD
* build: use GOPROXY * disable download vendor on some steps
2019-06-20Alpine 3.10 (#7256)techknowlogick
2019-05-05[docker] drop the docker Makefile from the image (#6507)Jakob Ackermann
2019-03-08Use golang 1.12 to build in dockerfile (#6285)techknowlogick
2019-02-05 Upgrade alpine to 3.9 (#5909)techknowlogick
2018-11-28Upgrade alpine to 3.8 (#5423)techknowlogick
2018-11-01Update golang version in Dockerfile (#5246)Stanislav
2018-10-23Update build tags for sqlite_unlock_notify (#5144)Mura Li
2018-07-04Fix docker build (#4358)techknowlogick
/app/gitea/gitea is the file, and /usr/local/bin is where the symlink will be located
2018-07-03Add missing path in the Docker app.ini template (#2181)Tao Wang
2018-03-12Docker multi-stage (#2927)Antoine GIRARD
* Setup docker multi-stage and little sugar at it * Make codacy happy ? * Revert back to what the official docker documentation suggest Codacy don't seems to follow https://docs.docker.com/engine/reference/builder/#maintainer-deprecated * Update golang version
2017-12-10Update alpine to 3.7 (#3121)Antoine GIRARD
2017-11-16Docker multi-arch base (#1985)Antoine GIRARD
* Create docker/manifest/base.yml serve as base for build docker image for most platform (386,amd64,arm,arm64) * Add make task docker-multi-arch-push-manifest To update references of a multi-arch image on docker registry. * Use SED_INPLACE generic sed command * Delete Dockerfile.aarch64 Delete Dockerfile.rpi * Use gitea/gitea-base as base and replace deprecated MAINTAINER by LABEL (https://docs.docker.com/engine/reference/builder/#maintainer-deprecated) * Fix rebase * Use sapk/gitea-base as base * Split makefile for docker * Fix version to v3.6 Could use in later version edge of alpine official library that support multi-arch for armhf. * Remove sapk/gitea-base and use directly new official alpine multi-arch
2017-10-31Add environment variable support for Docker image (#2201)Tao Wang
* 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>
2017-10-05Add maintainer label for docker file (#2658)Bo-Yi Wu
* Add maintainer label for docker file Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * update Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-09-13Dockerfile: Updated alpine image to 3.6. (#2486)Jon Davies
Signed-off-by: Jonathan Davies <jpds@protonmail.com>
2017-08-13Use /dev/urandom to create random password (#2298)Pontus Leitzler
* Make sure generated password is random Use /dev/urandom to get a 32 char password * Make sure generated password is random Use /dev/urandom to generate 32 char password * Make sure generated password is random
2017-06-30Revert "Reduce number of layer" (#2086)Lunny Xiao
This reverts commit 789188f13c93e47b8a758c379bd463f7c2792f13.
2017-06-30Reduce number of layer (#2078)Dryusdan
Somes layer are created and aren't usefull, so I compress this :)
2017-05-09Realy don't cache apk indexDaniel Wendler (@cassandra)
Actualy the "-U --no-cache" effectivly is treated as --no-cache was never specified: / # apk -U --no-cache add sed fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz (1/1) Installing sed (4.2.2-r0) Executing busybox-1.25.1-r0.trigger OK: 4 MiB in 12 packages / # ls -la /var/cache/apk/ total 1004 drwxr-xr-x 1 root root 70 May 8 11:08 . drwxr-xr-x 1 root root 29 Mar 3 11:20 .. -rw-r--r-- 1 root root 732807 May 5 07:11 APKINDEX.c51f8f92.tar.gz -rw-r--r-- 1 root root 293014 May 1 12:37 APKINDEX.d09172fd.tar.gz So removing the "-U" fix this behavior.