We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a445ab commit 704c188Copy full SHA for 704c188
Dockerfile
@@ -0,0 +1,3 @@
1
+FROM scratch
2
+COPY helloworld /helloworld
3
+ENTRYPOINT ["/helloworld"]
Makefile
@@ -0,0 +1,24 @@
+NAME = helloworld
+REPO = qaas/$(NAME)
+REGISTRY = m3274968.gra5.container-registry.ovh.net
4
+TAG = latest
5
+
6
+all:
7
8
+build-binary:
9
+ CGO_ENABLED=0 go build -o $(NAME)
10
11
+test:
12
+ go test
13
14
+run:
15
+ go run main.go
16
17
+build: build-binary
18
+ docker build -t $(REGISTRY)/$(REPO):$(TAG) .
19
20
+run-image:
21
+ docker run --name $(NAME) --rm $(REGISTRY)/$(REPO):$(TAG)
22
23
+push:
24
+ docker push $(REGISTRY)/$(REPO):$(TAG)
0 commit comments