aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-11-01 23:35:08 +0000
committersaturneric <[email protected]>2025-11-01 23:35:08 +0000
commit238c9a4686941f7d78c2fb6d6e08c360498daf43 (patch)
treef0b5d0bf3d5684d64c2e481b20161418ad3d66d1
parentgit: update to v2.46.0 (diff)
downloadcgit-238c9a4686941f7d78c2fb6d6e08c360498daf43.tar.gz
cgit-238c9a4686941f7d78c2fb6d6e08c360498daf43.zip
feat(docker): add initial `Dockerfile` for build setup
* Introduce a minimal container build using Alpine Linux * Install required packages for building and running the app * Automate submodule initialization and build steps * Enable easier deployment and reproducible environments
-rw-r--r--Dockerfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..43b81dc
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,9 @@
+FROM alpine:latest as builder
+
+COPY . /app
+
+RUN apk --no-cache add git gcc make openssl libzip lua5.4 nginx && \
+ cd /app && \
+ git submodule update --init --recursive && \
+ make && \
+ make install \ No newline at end of file