This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch refactor-with-go
in repository https://gitbox.apache.org/repos/asf/dubbo-admin.git
The following commit(s) were added to refs/heads/refactor-with-go by this push:
new c5dd305 Update dockerfile
c5dd305 is described below
commit c5dd3051be876890651d202752b8456407b86fcd
Author: Albumen Kevin <[email protected]>
AuthorDate: Tue Feb 28 10:42:20 2023 +0800
Update dockerfile
---
ca/Dockerfile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ca/Dockerfile b/ca/Dockerfile
index f34992d..d936eba 100644
--- a/ca/Dockerfile
+++ b/ca/Dockerfile
@@ -6,8 +6,12 @@ ADD . /workspace
WORKDIR /workspace
+#RUN --mount=type=cache,target=/go \
+# go build -buildmode=pie -ldflags "-linkmode external -extldflags -static
-w" \
+# -o /workspace/ca
+
RUN --mount=type=cache,target=/go \
- go build -buildmode=pie -ldflags "-linkmode external -extldflags -static -w"
\
+ go build \
-o /workspace/ca
FROM alpine:3.17