Skip to content

Commit 704c188

Browse files
author
Moussa Ouattara
committed
update
1 parent 5a445ab commit 704c188

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM scratch
2+
COPY helloworld /helloworld
3+
ENTRYPOINT ["/helloworld"]

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
NAME = helloworld
2+
REPO = qaas/$(NAME)
3+
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

Comments
 (0)