build: switch Docker images to Debian and optimize build process #19
Reference in New Issue
Block a user
No description provided.
Delete Branch "docker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
golang:1.24-alpine
togolang:1.24-bullseye
for the build stage/build
to/app
ubuntu:24.04
todebian:bullseye-slim
gitea-mcp
--chown=1000:1000 /app/gitea-mcp
CMD
to use an absolute path/app/gitea-mcp
Signed-off-by: appleboy appleboy.tw@gmail.com
Why
Separate the copying of go.mod and go.sum files before downloading dependencies
is needed? 🤔@yp05327 to help caching of docker build. the application code will change more often then gomod files will. so copy them in and download deps will be cached, then copy in application code and finish build.
@techknowlogick
Thanks for your explaination!
@yp05327 of course :) always happy to