add build command

This commit is contained in:
Владимир Фёдоров 2024-05-19 19:13:51 +07:00
parent 887caf5d79
commit 90b1937707
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
FROM alpine:latest FROM alpine:latest
RUN apk add --no-cache ca-certificates 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} RUN chmod +x /usr/local/bin/${REPO_NAME}
CMD ["/usr/local/bin/${REPO_NAME}"] CMD ["/usr/local/bin/${REPO_NAME}"]

View File

@ -11,3 +11,6 @@ generate:
run: run:
go run ./cmd/${REPO_NAME_SNAKE}/main.go go run ./cmd/${REPO_NAME_SNAKE}/main.go
build:
go build -o bin/${REPO_NAME_SNAKE} cmd/${REPO_NAME_SNAKE}/main.go