summaryrefslogtreecommitdiffstats
path: root/Dockerfile
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Copy gitea binary to docker from correct path (#325)Thomas Boerger2016-12-011-1/+1
| | | Signed-off-by: Thomas Boerger <tboerger@suse.de>
* Added -S flag to addgroup command within DockerfilesThomas Boerger2016-11-281-1/+1
|
* Replaced edge with 3.4 for the alpine base imageThomas Boerger2016-11-281-1/+1
|
* Replaced shadow with addgroup and adduserThomas Boerger2016-11-281-8/+5
|
* Use su-exec instead of gosu, much smallerThomas Boerger2016-11-281-3/+3
|
* Restructured docker buildingThomas Boerger2016-11-281-17/+42
| | | | | | | | | I have restructured the docker build process entirely, the binary gets built outside of the docker build command, now we are managing all dependencies with real Alpine packages and I have dropped features like socat or the cron daemon. Signed-off-by: Thomas Boerger <tboerger@suse.de>
* Replace GOGS with GITEA in variable namesSandro Santilli2016-11-071-1/+1
| | | | | | | | | | | | Still use GOGS_WORK_DIR and GOGS_CUSTOM env variables as a fallback if the equivalent GITEA_* are not set, warning user about the need for change. Does not change "gogs" to "gitea" in webhook type name Because "gogs" hook type is part of the API (routes) and used in templates... Closes #87
* docker: Support timezones (#3262)Andrey Arapov2016-07-151-1/+1
|
* Update docker/build.sh script to use glide & make (#3079)Jean-Philippe Roemer2016-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | * docker: update build script to use glide + make - docker/build.sh will now use glide to fetch dependencies - glide is built from source to keep compatibility with arm (no pre-prebuilt binary for arm) - docker/build.sh will also now use the provided Makefile It will generate an error when trying to get git build has as we do not ship the 88mo .git directory during the build (should not cause any problem as the variable it sets was not set previously) * docker: fix docker arm build - drop gosu version back to 1.7 as gosu binary for armhf is broken - see tianon/gosu#19 * docker: update gosu to 1.9 Signed-off-by: Jean-Philippe Roemer <jp@roemer.im>
* Dockerfile & Dockerfile.pi updatesJean-Philippe Roemer2016-02-251-1/+1
| | | | | | - Upgrade of gosu to v1.7 - Change in docker/build.sh to use `--no-cache` to prevent APKINDEX creation when installing dev dependencies - Manual upgrade of Alpine on Raspberry Pi when building to make sure the environment is the same as the standard Dockerfile