-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.unsafe
49 lines (40 loc) · 958 Bytes
/
Dockerfile.unsafe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Build derper
FROM golang:alpine AS build
COPY . /tmp
RUN apk add --no-cache git && \
cd /tmp/tailscale && \
git apply /tmp/hack/0001-feat-remove-cert-mismatch-check.patch && \
cd /tmp/tailscale/cmd/derper && \
go build -o /go/bin/derper
# Build image
FROM ghcr.io/ngc7331/linuxserver-baseimage-alpine:3.20
# install acme.sh
RUN apk add --no-cache \
openssl
COPY acme.sh /app/acme.sh
# install derper
COPY --from=build /go/bin/derper /bin/derper
# Copy root filesystem
COPY root /
# Common Envs
ENV PUID=1000
ENV PGID=1000
ENV TZ=Asia/Shanghai
# Derper Envs
ENV DERP_CERTMODE=acme.sh
ENV DERP_HOSTNAME=
ENV DERP_PORT_HTTP=80
ENV DERP_PORT_HTTPS=443
ENV DERP_PORT_STUN=3478
ENV DERP_ENABLE_HTTP=true
ENV DERP_ENABLE_STUN=true
ENV DERP_VERIFY_CLIENTS=false
# acme.sh Envs
ENV ACME_SH_EMAIL=
ENV ACME_SH_DNSAPI=
ENV ACME_SH_CA=letsencrypt
# ... other dnsapi envs
VOLUME [ "/data" ]
EXPOSE 80/tcp
EXPOSE 443/tcp
EXPOSE 3478/udp