2022-08-09 04:31:25 +00:00
|
|
|
FROM nixos/nix:latest
|
|
|
|
|
|
|
|
WORKDIR /code
|
|
|
|
RUN nix \
|
|
|
|
--extra-experimental-features nix-command \
|
|
|
|
--extra-experimental-features flakes \
|
|
|
|
build git+https://git.mat.services/mat/mat.services
|
|
|
|
|
|
|
|
FROM caddy:latest
|
|
|
|
|
2022-08-28 18:57:10 +00:00
|
|
|
ENV SITE_ROOT /var/www
|
|
|
|
|
2022-08-09 04:31:25 +00:00
|
|
|
COPY Caddyfile /etc/caddy/Caddyfile
|
2022-08-28 18:57:10 +00:00
|
|
|
COPY --from=0 /code/result ${SITE_ROOT}
|
2022-08-09 04:31:25 +00:00
|
|
|
RUN caddy
|