mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-03 04:24:32 -04:00
remove non-debug Dockerfile
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
b752038402
commit
3448a96b3b
@ -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"
|
||||||
|
33
Dockerfile
33
Dockerfile
@ -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"]
|
|
Loading…
x
Reference in New Issue
Block a user