From e4ae77f8de205e7fb1285f938caf31f0e7b0fe64 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 23 Jul 2025 20:56:22 -0400 Subject: [PATCH] test: add DOMAIN_NAME to Caddyfile --- Containerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Containerfile b/Containerfile index fc93546..1a5c10c 100644 --- a/Containerfile +++ b/Containerfile @@ -1,3 +1,7 @@ +# A hello-world example. + +ARG DOMAIN_NAME + FROM stagex/pallet-rust:sx2025.06.1 AS pallet-rust FROM stagex/user-eif_build:sx2025.06.1 AS eif_build FROM stagex/user-gen_initramfs:sx2025.06.1 AS gen_initramfs @@ -23,11 +27,22 @@ WORKDIR /build_cpio RUN cp /src/target/${TARGET}/release/nit init RUN cp /src/target/${TARGET}/release/hello hello ENV KBUILD_BUILD_TIMESTAMP=1 + +COPY <<-EOF Caddyfile +${DOMAIN_NAME} { + respond "HTTPS, World!" +} +EOF + +RUN cat Caddyfile; exit 1 + COPY <<-EOF initramfs.list file /init init 0755 0 0 dir /run 0755 0 0 dir /tmp 0755 0 0 dir /etc 0755 0 0 + dir /etc/caddy 0755 0 0 + file /etc/caddy/Caddyfile Caddyfile 0755 0 0 dir /bin 0755 0 0 dir /sbin 0755 0 0 dir /proc 0755 0 0