mirror of
https://github.com/fredliang44/derper-docker.git
synced 2024-09-20 06:46:14 +08:00
14 lines
334 B
Docker
14 lines
334 B
Docker
|
FROM golang:latest AS builder
|
||
|
WORKDIR /app
|
||
|
|
||
|
# https://tailscale.com/kb/1118/custom-derp-servers/
|
||
|
RUN go install tailscale.com/cmd/derper@main
|
||
|
|
||
|
FROM ubuntu
|
||
|
WORKDIR /app
|
||
|
|
||
|
ENV DEPR_HOSTNAME your-hostname.com
|
||
|
COPY --from=builder /go/bin/derper .
|
||
|
COPY entrypoint.sh /app/entrypoint.sh
|
||
|
|
||
|
CMD ["/app/derper", "--hostname", "${DEPR_HOSTNAME}"]
|