aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
Commit message (Collapse)AuthorAgeFilesLines
* Switch to building with go1.19 (#20695)techknowlogick2022-08-071-1/+1
|
* alpine 3.16 (#19797)techknowlogick2022-05-251-2/+2
| | | Co-authored-by: 6543 <6543@obermui.de>
* use go1.18 to build gitea (#19099)techknowlogick2022-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Upgrade Alpine from 3.13 to 3.15 (#18050)v1.17.0-devGrzegorz Alibożek2022-01-191-5/+3
| | | | | | | | | | | * 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>
* update docker image to latest go version (#18048)techknowlogick2021-12-201-2/+2
|
* Use shadowing script for docker (#17846)zeripath2021-12-011-2/+1
| | | | | | | | | | | | | | | | | | | | 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>
* chmod executables when copying to the docker (#17423)zeripath2021-10-251-0/+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>
* Alpine 3.14 released (#16170)techknowlogick2021-07-071-2/+2
| | | | Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* Remove random password in Dockerfiles (#15362)Martin Michaelis2021-04-291-1/+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
|
* Revert "Dockerfile: Support socat use cases (#13208)" (#13369)Antoine GIRARD2020-10-311-1/+0
| | | This reverts commit ff50274ff34e4342d8f6b9470345a1df341d8428.
* Dockerfile: Support socat use cases (#13208)Begley Brothers (Development)2020-10-211-0/+1
| | | | | | | | | | | | | | * 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>
* Update Dockerfile (#12922)Antoine GIRARD2020-09-271-2/+1
|
* go1.15 (#12475)techknowlogick2020-08-131-1/+1
| | | | | | | | | | | | | * 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>
* Fix missing CGO_EXTRA_FLAGS build arg for docker (#11782)Cirno the Strongest2020-06-061-0/+1
| | | Co-authored-by: zeripath <art27@cantab.net>
* Alpine 3.12 (#11720)techknowlogick2020-06-031-2/+2
| | | | | * increase alpine to 3.12 * Update .drone.yml
* Add gnupg to Dockerfile (#11365)Cirno the Strongest2020-05-101-1/+2
| | | Co-authored-by: zeripath <art27@cantab.net>
* go 1.14 (#10467)techknowlogick2020-03-201-1/+1
|
* Frontend build improvements, fix Fomantic build (#10576)silverwind2020-03-031-1/+1
| | | | | | | | | | | | | | - 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
* alpine 3.11 (#9440)techknowlogick2019-12-261-2/+2
|
* Fix latest docker image haven't include static files. (#9252)Lunny Xiao2019-12-051-1/+1
| | | | | | * add warnging on docs * fix docs
* Add Node.js build dep, remove built js/css files (#9114)silverwind2019-12-051-1/+1
| | | | | | | | | - 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
* use go 1.13 (#8088)techknowlogick2019-09-121-1/+1
| | | | | | | | | | * use go 1.13 * use go 1.13 in gomod file * Update Makefile * update swagger deps
* build: use GOPROXY and disable download on some steps (#7745)Antoine GIRARD2019-08-051-0/+3
| | | | | | * build: use GOPROXY * disable download vendor on some steps
* Alpine 3.10 (#7256)techknowlogick2019-06-201-2/+2
|
* [docker] drop the docker Makefile from the image (#6507)Jakob Ackermann2019-05-051-1/+1
|
* Use golang 1.12 to build in dockerfile (#6285)techknowlogick2019-03-081-1/+1
|
* Upgrade alpine to 3.9 (#5909)techknowlogick2019-02-051-2/+2
|
* Upgrade alpine to 3.8 (#5423)techknowlogick2018-11-281-2/+2
|
* Update golang version in Dockerfile (#5246)Stanislav2018-11-011-1/+1
|
* Update build tags for sqlite_unlock_notify (#5144)Mura Li2018-10-231-1/+1
|
* Fix docker build (#4358)techknowlogick2018-07-041-1/+1
| | | /app/gitea/gitea is the file, and /usr/local/bin is where the symlink will be located
* Add missing path in the Docker app.ini template (#2181)Tao Wang2018-07-031-0/+1
|
* Docker multi-stage (#2927)Antoine GIRARD2018-03-121-9/+29
| | | | | | | | | | | | * 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
* Update alpine to 3.7 (#3121)Antoine GIRARD2017-12-101-1/+1
|
* Docker multi-arch base (#1985)Antoine GIRARD2017-11-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add environment variable support for Docker image (#2201)Tao Wang2017-10-311-0/+1
| | | | | | | | | | * 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>
* Add maintainer label for docker file (#2658)Bo-Yi Wu2017-10-051-1/+2
| | | | | | | | | | * 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>
* Dockerfile: Updated alpine image to 3.6. (#2486)Jon Davies2017-09-131-1/+1
| | | Signed-off-by: Jonathan Davies <jpds@protonmail.com>
* Use /dev/urandom to create random password (#2298)Pontus Leitzler2017-08-131-1/+1
| | | | | | | | | | | | * 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
* Revert "Reduce number of layer" (#2086)Lunny Xiao2017-06-301-5/+5
| | | This reverts commit 789188f13c93e47b8a758c379bd463f7c2792f13.
* Reduce number of layer (#2078)Dryusdan2017-06-301-5/+5
| | | Somes layer are created and aren't usefull, so I compress this :)
* Realy don't cache apk indexDaniel Wendler (@cassandra)2017-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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.
* Upgrade alpine to v3.5 in Dockerfile (#1633)Peter Dave Hello2017-05-051-1/+1
|
* Refactor DockerfilePeter Dave Hello2017-04-291-6/+3
| | | | | | | | 1. Use `apk -U --no-cache add` instead of `apk update` + `apk add` + manually cache clean up. 2. Separate package installation and user, group setup, the combination to reduce a docker image layer didn't bring benefits here, only makes Dockerfiles more complex.
* Fixing multiple docker issues (#386)Thomas Boerger2016-12-151-4/+2
| | | | | | | | | | | | * Added stupid docker task to makefile * Dropped unknown option PrintLastLog from docker ssh config * OpenSSH should log to docker stdout * Set random pw for docker git user, otherwise it is locked * Stop using templates and public within docker