remove non-debug Dockerfile

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2024-02-03 17:17:40 +01:00
parent b752038402
commit 3448a96b3b
No known key found for this signature in database
2 changed files with 10 additions and 43 deletions

View File

@ -96,11 +96,11 @@ kos:
- linux/arm/v5 - linux/arm/v5
tags: tags:
- latest - latest
- '{{ .Tag }}' - "{{ .Tag }}"
- '{{ .Major }}.{{ .Minor }}.{{ .Patch }}' - "{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- '{{ .Major }}.{{ .Minor }}' - "{{ .Major }}.{{ .Minor }}"
- '{{ .Major }}' - "{{ .Major }}"
- '{{ if not .Prerelease }}stable{{ end }}' - "{{ if not .Prerelease }}stable{{ end }}"
- id: dockerhub - id: dockerhub
build: headscale build: headscale
@ -115,11 +115,11 @@ kos:
- linux/arm/v5 - linux/arm/v5
tags: tags:
- latest - latest
- '{{ .Tag }}' - "{{ .Tag }}"
- '{{ .Major }}.{{ .Minor }}.{{ .Patch }}' - "{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- '{{ .Major }}.{{ .Minor }}' - "{{ .Major }}.{{ .Minor }}"
- '{{ .Major }}' - "{{ .Major }}"
- '{{ if not .Prerelease }}stable{{ end }}' - "{{ if not .Prerelease }}stable{{ end }}"
checksum: checksum:
name_template: "checksums.txt" name_template: "checksums.txt"

View File

@ -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"]