-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (37 loc) · 961 Bytes
/
Dockerfile
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
FROM caddy:2.8-builder AS builder
RUN xcaddy build \
--with github.com/caddy-dns/azure \
--with github.com/caddy-dns/cloudflare \
--with github.com/caddy-dns/duckdns \
--with github.com/caddy-dns/namecheap
FROM tailscale/tailscale:stable
RUN set -eux; \
mkdir -p \
/config/tailscale \
/config/caddy \
/data/caddy \
/etc/caddy \
/usr/share/caddy \
/lib/modules \
;
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
COPY ./entrypoint.sh /entrypoint.sh
COPY ./Caddyfile /etc/caddy/Caddyfile
ENV XDG_CONFIG_HOME /config
ENV XDG_DATA_HOME /data
ENV OVERRIDE_DEFAULT_ROUTE "false"
ENV GATEWAY_IP ""
ENV LAN_NIC ""
ENV TRUENAS_SYSTEM "false"
ENV TRUENAS_SERVICE_NETWORK ""
ENV TRUENAS_CLUSTER_GATEWAY_IP ""
ENV TSD_TUN userspace-networking
ENV TSD_PORT 0
ENV TSD_EXTRA_ARGS ""
ENV TS_ENABLE "true"
ENV TS_HOSTNAME tailscale-caddy-dns
ENV TS_AUTH_KEY="change_me"
ENV TS_EXTRA_ARGS ""
ENV SECRETS_FILENAME="none"
WORKDIR /srv
CMD ["sh", "/entrypoint.sh"]