You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by ke...@apache.org on 2020/12/21 09:45:24 UTC
[skywalking-eyes] branch main updated: Fix Dockerfile
This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git
The following commit(s) were added to refs/heads/main by this push:
new 6a06cc7 Fix Dockerfile
6a06cc7 is described below
commit 6a06cc7bcc31e4b1e31fb5f17233dfa9a9d10d5e
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Mon Dec 21 17:45:04 2020 +0800
Fix Dockerfile
---
license-eye/Dockerfile | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/license-eye/Dockerfile b/license-eye/Dockerfile
index 77731eb..39da95b 100644
--- a/license-eye/Dockerfile
+++ b/license-eye/Dockerfile
@@ -14,18 +14,19 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-#
+#
+
FROM golang:1.14.3-alpine AS build
-WORKDIR /src
+WORKDIR /license-eye
-COPY .. .
+COPY . .
-RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /bin/license-eye
+RUN apk add make && make build
FROM alpine:3 AS bin
-COPY --from=build /bin/license-eye /bin/license-eye
+COPY --from=build /license-eye/bin/linux/license-eye /bin/license-eye
WORKDIR /github/workspace/