Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG BASE_IMAGE=scratch

# --------------------- dev (build) image --------------------- #

FROM golang:1.24-alpine as builder
FROM golang:1.24-alpine AS builder

RUN apk add git
RUN apk add make
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ NAME := gobetween
VERSION := $(shell cat VERSION)
REVISION := $(shell git rev-parse HEAD 2>/dev/null)
BRANCH := $(shell git symbolic-ref --short HEAD 2>/dev/null)
OS := $(shell uname -o | tr '[:upper:]' '[:lower:]')
ARCH := $(shell uname -m | tr '[:upper:]' '[:lower:]')

LDFLAGS := \
-X main.version=${VERSION} \
Expand All @@ -34,7 +36,7 @@ build:

build-static:
@echo Building...
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -a -tags netgo -o ./bin/$(NAME) -ldflags '-s -w --extldflags "-static" ${LDFLAGS}' .
CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) go build -v -a -tags netgo -o ./bin/$(NAME) -ldflags '-s -w --extldflags "-static" ${LDFLAGS}' .
@echo Done.

run: build
Expand Down Expand Up @@ -72,6 +74,7 @@ dist:
"linux amd64 0 " \
"linux arm64 0 " \
"linux arm 0 " \
"linux riscv64 0 " \
"darwin amd64 0 " \
"windows amd64 0 .exe " ; \
do \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
## Hacking

* Install Go 1.24+ https://golang.org/
* `$ git clone git@github.com:yyyar/gobetween.git`
* `$ git clone https://github.com/yyyar/gobetween.git`
* `$ make`
* `$ make run`

Expand Down