forked from NYANDEV/forgejo
a076cb2a4c
* Increase maximum SQLite variables count to 32766 (#11696)
per https://www.sqlite.org/limits.html
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
(cherry picked from commit a5aa5c58c1
)
* Fix missing CGO_EXTRA_FLAGS build arg for docker
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
14 lines
603 B
Makefile
Vendored
14 lines
603 B
Makefile
Vendored
#Makefile related to docker
|
|
|
|
DOCKER_IMAGE ?= gitea/gitea
|
|
DOCKER_TAG ?= latest
|
|
DOCKER_REF := $(DOCKER_IMAGE):$(DOCKER_TAG)
|
|
|
|
.PHONY: docker
|
|
docker:
|
|
docker build --disable-content-trust=false -t $(DOCKER_REF) .
|
|
# support also build args docker build --build-arg GITEA_VERSION=v1.2.3 --build-arg TAGS="bindata sqlite sqlite_unlock_notify" .
|
|
|
|
.PHONY: docker-build
|
|
docker-build:
|
|
docker run -ti --rm -v $(CURDIR):/srv/app/src/code.gitea.io/gitea -w /srv/app/src/code.gitea.io/gitea -e TAGS="bindata $(TAGS)" LDFLAGS="$(LDFLAGS)" CGO_EXTRA_CFLAGS="$(CGO_EXTRA_CFLAGS)" webhippie/golang:edge make clean build
|