[PR #1615] [CLOSED] [WIP] Multi-stage (& multi-arch) dockerfile #15951

Closed
opened 2025-11-02 11:58:45 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1615
Author: @sapk
Created: 4/26/2017
Status: Closed

Base: masterHead: multi-stage-docker


📝 Commits (10+)

  • c8c5bab Prepare migration to multi-stage dokcerfile + add support for multi-arch manifest.
  • 8596126 Add management of docker manifest + base manisfest on gitea
  • 09da0ea Add docker-multi-update-all and use GITEA_VERSION
  • 276ab45 Allow more flexible config
  • a242fb5 fix and improve
  • 617234d De-duplicate
  • 942da85 Add DOCKER_PUSHIMAGE config env to docker-multi-update-manifest
  • e4a7fae Use docker login folder
  • c8de80a REmove useless "
  • f374195 Use vX.X.X like git tags

📊 Changes

14 files changed (+207 additions, -110 deletions)

View changed files

.dockerignore (+0 -5)
📝 Dockerfile (+30 -25)
Dockerfile.aarch64 (+0 -40)
Dockerfile.rpi (+0 -39)
📝 Makefile (+51 -1)
docker/manifest/base.yml (+14 -0)
docker/manifest/gitea-1-0-0.yml (+14 -0)
docker/manifest/gitea-1-0-1.yml (+14 -0)
docker/manifest/gitea-1-0-2.yml (+14 -0)
docker/manifest/gitea-1-0.yml (+14 -0)
docker/manifest/gitea-1-1-0.yml (+14 -0)
docker/manifest/gitea-1-1-1.yml (+14 -0)
docker/manifest/gitea-1-1.yml (+14 -0)
docker/manifest/gitea.yml (+14 -0)

📄 Description

Implement multi-stage dockerfile. This will permit cleaner build with the ability to configure build params and maybe if FROM are multi-arch to have only one dockerfile.

After that someone could simply do docker build . to build the image locally on every platform. (Not yet ready)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1615 **Author:** [@sapk](https://github.com/sapk) **Created:** 4/26/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `multi-stage-docker` --- ### 📝 Commits (10+) - [`c8c5bab`](https://github.com/go-gitea/gitea/commit/c8c5baba28a558a7e0a1cff87f3cdd462c672968) Prepare migration to multi-stage dokcerfile + add support for multi-arch manifest. - [`8596126`](https://github.com/go-gitea/gitea/commit/8596126fd3bc3f8e6fe7b0717a2b1f7fde51373d) Add management of docker manifest + base manisfest on gitea - [`09da0ea`](https://github.com/go-gitea/gitea/commit/09da0ea015e504743bce82035a1c7f44f28e2c01) Add docker-multi-update-all and use GITEA_VERSION - [`276ab45`](https://github.com/go-gitea/gitea/commit/276ab4501edae0ca8faa4da819dbc6bfae1a4352) Allow more flexible config - [`a242fb5`](https://github.com/go-gitea/gitea/commit/a242fb572323a08c713e0122a23a2d3a480817c6) fix and improve - [`617234d`](https://github.com/go-gitea/gitea/commit/617234dae5437ac3d2b8f69b6027fc7b1b8d4109) De-duplicate - [`942da85`](https://github.com/go-gitea/gitea/commit/942da85b864c277a3f1aa2d233df6a0d8babb5ad) Add DOCKER_PUSHIMAGE config env to docker-multi-update-manifest - [`e4a7fae`](https://github.com/go-gitea/gitea/commit/e4a7faef6f15053c3f74ad419214e2453f925da5) Use docker login folder - [`c8de80a`](https://github.com/go-gitea/gitea/commit/c8de80adf3f739539416933bf989f48bbeedc0fa) REmove useless " - [`f374195`](https://github.com/go-gitea/gitea/commit/f37419561e87479c5c571da68eb3089ece45f626) Use vX.X.X like git tags ### 📊 Changes **14 files changed** (+207 additions, -110 deletions) <details> <summary>View changed files</summary> ➖ `.dockerignore` (+0 -5) 📝 `Dockerfile` (+30 -25) ➖ `Dockerfile.aarch64` (+0 -40) ➖ `Dockerfile.rpi` (+0 -39) 📝 `Makefile` (+51 -1) ➕ `docker/manifest/base.yml` (+14 -0) ➕ `docker/manifest/gitea-1-0-0.yml` (+14 -0) ➕ `docker/manifest/gitea-1-0-1.yml` (+14 -0) ➕ `docker/manifest/gitea-1-0-2.yml` (+14 -0) ➕ `docker/manifest/gitea-1-0.yml` (+14 -0) ➕ `docker/manifest/gitea-1-1-0.yml` (+14 -0) ➕ `docker/manifest/gitea-1-1-1.yml` (+14 -0) ➕ `docker/manifest/gitea-1-1.yml` (+14 -0) ➕ `docker/manifest/gitea.yml` (+14 -0) </details> ### 📄 Description Implement multi-stage dockerfile. This will permit cleaner build with the ability to configure build params and maybe if FROM are multi-arch to have only one dockerfile. After that someone could simply do `docker build .` to build the image locally on every platform. (Not yet ready) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:58:45 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15951