diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8f8dfa9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine:3.20 +WORKDIR / +COPY gmc gmc +USER nobody +ENTRYPOINT ["/gmc"] diff --git a/Makefile b/Makefile index 95af4eb..20b4e16 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ VERSION?=0.0.1-local IMAGE = quay.io/fortnox/gitmachinecontroller build: - CGO_ENABLED=0 GOOS=linux go build + CGO_ENABLED=0 GOOS=linux go build -o gmc ./cmd/gmc docker: build docker build --pull --rm -t $(IMAGE):$(VERSION) .