Compare commits
No commits in common. "c077a9acc647330381e7d28059fba252bab441c1" and "9b414bd569a3db8c0241676709b59cbb4d17e73f" have entirely different histories.
c077a9acc6
...
9b414bd569
@ -1,13 +1,8 @@
|
|||||||
FROM alpine
|
FROM caddy:alpine
|
||||||
|
|
||||||
# Change to http respositories, so they we can cache the install packages
|
# Change to http respositories, so they we can cache the install packages
|
||||||
RUN if [ -n "${HTTP_PROXY}" ] ; then echo "Using HTTP PROXY [${HTTP_PROXY}]" && sed -i -e s'/https/http/' /etc/apk/repositories; fi
|
RUN if [ -n "${HTTP_PROXY}" ] ; then echo "Using HTTP PROXY [${HTTP_PROXY}]" && sed -i -e s'/https/http/' /etc/apk/repositories; fi
|
||||||
|
|
||||||
RUN apk --no-cache add xcaddy \
|
|
||||||
&& xcaddy build --with github.com/caddy-dns/cloudflare --with github.com/mholt/caddy-l4 --output=/usr/sbin/caddy \
|
|
||||||
&& apk --no-cache del xcaddy \
|
|
||||||
&& rm -rf /root/go /root/.cache
|
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
COPY Caddyfile /etc/caddy/Caddyfile
|
COPY Caddyfile /etc/caddy/Caddyfile
|
||||||
COPY default.key default.crt /etc/caddy/ssl/
|
COPY default.key default.crt /etc/caddy/ssl/
|
||||||
@ -15,7 +10,6 @@ COPY maintenance /var/www/html
|
|||||||
RUN mkdir /etc/caddy/sites
|
RUN mkdir /etc/caddy/sites
|
||||||
|
|
||||||
# Starting
|
# Starting
|
||||||
ENV XDG_DATA_HOME=/data
|
EXPOSE 80 443 25 110 143
|
||||||
EXPOSE 80 443
|
|
||||||
CMD ["caddy","run","--config","/etc/caddy/Caddyfile","--adapter","caddyfile","--resume"]
|
CMD ["caddy","run","--config","/etc/caddy/Caddyfile","--adapter","caddyfile","--resume"]
|
||||||
VOLUME [ "${XDG_DATA_HOME}" ]
|
VOLUME [ "${XDG_DATA_HOME}" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user