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