From 90b1937707aac1e0988a32835360f9d74d4aa737 Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Sun, 19 May 2024 19:13:51 +0700 Subject: [PATCH] add build command --- Dockerfile | 2 +- Makefile | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0226019..2515257 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM alpine:latest RUN apk add --no-cache ca-certificates -COPY ${REPO_NAME} /usr/local/bin/${REPO_NAME} +COPY bin/${REPO_NAME} /usr/local/bin/${REPO_NAME} RUN chmod +x /usr/local/bin/${REPO_NAME} CMD ["/usr/local/bin/${REPO_NAME}"] diff --git a/Makefile b/Makefile index 14853f8..c4b8635 100644 --- a/Makefile +++ b/Makefile @@ -11,3 +11,6 @@ generate: run: go run ./cmd/${REPO_NAME_SNAKE}/main.go + +build: + go build -o bin/${REPO_NAME_SNAKE} cmd/${REPO_NAME_SNAKE}/main.go