diff --git a/.goreleaser.yml b/.goreleaser.yml index 44955c82..ee74265a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -96,11 +96,11 @@ kos: - linux/arm/v5 tags: - latest - - '{{ .Tag }}' - - '{{ .Major }}.{{ .Minor }}.{{ .Patch }}' - - '{{ .Major }}.{{ .Minor }}' - - '{{ .Major }}' - - '{{ if not .Prerelease }}stable{{ end }}' + - "{{ .Tag }}" + - "{{ .Major }}.{{ .Minor }}.{{ .Patch }}" + - "{{ .Major }}.{{ .Minor }}" + - "{{ .Major }}" + - "{{ if not .Prerelease }}stable{{ end }}" - id: dockerhub build: headscale @@ -115,11 +115,11 @@ kos: - linux/arm/v5 tags: - latest - - '{{ .Tag }}' - - '{{ .Major }}.{{ .Minor }}.{{ .Patch }}' - - '{{ .Major }}.{{ .Minor }}' - - '{{ .Major }}' - - '{{ if not .Prerelease }}stable{{ end }}' + - "{{ .Tag }}" + - "{{ .Major }}.{{ .Minor }}.{{ .Patch }}" + - "{{ .Major }}.{{ .Minor }}" + - "{{ .Major }}" + - "{{ if not .Prerelease }}stable{{ end }}" checksum: name_template: "checksums.txt" diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index aa52b13d..00000000 --- a/Dockerfile +++ /dev/null @@ -1,33 +0,0 @@ -# This Dockerfile and the images produced are for testing headscale, -# and are in no way endorsed by Headscale's maintainers as an -# official nor supported release or distribution. - -FROM docker.io/golang:1.21-bookworm AS build -ARG VERSION=dev -ENV GOPATH /go -WORKDIR /go/src/headscale - -COPY go.mod go.sum /go/src/headscale/ -RUN go mod download - -COPY . . - -RUN CGO_ENABLED=0 GOOS=linux go install -ldflags="-s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=$VERSION" -a ./cmd/headscale -RUN strip /go/bin/headscale -RUN test -e /go/bin/headscale - -# Production image -FROM docker.io/debian:bookworm-slim - -RUN apt-get update \ - && apt-get install -y ca-certificates \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -COPY --from=build /go/bin/headscale /bin/headscale -ENV TZ UTC - -RUN mkdir -p /var/run/headscale - -EXPOSE 8080/tcp -CMD ["headscale"]