diff --git a/Caddyfile b/Caddyfile index 7416457ab3200456d636ccb1fb3bb751e489b1e8..bbd8df8ed3673b6f79b57cf6ab727c76eb7b7264 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,4 +1,8 @@ -http://teckids.org { +http:// { + error 404 +} + +http://teckids.org, http://*.review.teckids.org { root * /srv encode zstd gzip file_server diff --git a/Dockerfile b/Dockerfile index 54609ce176a041415468669e56fe5d1566c58aa6..21ced1fbddd431428b1f9a3015aed5e3a1b4aea7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,14 @@ FROM alpine:latest AS build +ARG BASE_URL=https://teckids.org + RUN apk add --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ zola yarn COPY . /src WORKDIR /src RUN yarn install -RUN zola build +RUN zola build -u $BASE_URL FROM caddy:alpine AS serve