From 390aa6e04717cb99d4456f72b196b6139564bd13 Mon Sep 17 00:00:00 2001 From: Mistivia Date: Mon, 15 Sep 2025 19:59:01 +0800 Subject: add docker build script --- .gitignore | 3 +-- Dockerfile | 3 +++ build-docker.sh | 9 +++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 Dockerfile create mode 100644 build-docker.sh diff --git a/.gitignore b/.gitignore index 1c82cfb..8dd1137 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,4 @@ a.out config rootfs conf -Dockerfile -*.tar.gz \ No newline at end of file +*.tar.gz diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eee2b8d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM scratch +COPY rootfs / +ENTRYPOINT ["/ezlive", "/etc/ezlive/config"] diff --git a/build-docker.sh b/build-docker.sh new file mode 100644 index 0000000..af9bb31 --- /dev/null +++ b/build-docker.sh @@ -0,0 +1,9 @@ +sudo rm -rf rootfs +mkdir rootfs +mkdir rootfs/etc +mkdir rootfs/etc/ezlive/ +create_rootfs.sh ezlive rootfs/ +cp ezlive rootfs/ +cp -L -r /etc/ssl rootfs/etc/ +sudo podman build -t ezlive . +sudo podman save ezlive | gzip > ezlive-docker-image.tar.gz -- cgit v1.0