aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-09-15 19:59:01 +0800
committerMistivia <i@mistivia.com>2025-09-15 19:59:01 +0800
commit390aa6e04717cb99d4456f72b196b6139564bd13 (patch)
tree0c4cd13350ade2ba91931fe882395df01a10f152
parente0ce1cce786639249823b394d01ff42c45183d8b (diff)
add docker build script
-rw-r--r--.gitignore3
-rw-r--r--Dockerfile3
-rw-r--r--build-docker.sh9
3 files changed, 13 insertions, 2 deletions
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