summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2026-02-18 22:14:54 +0100
committerJesper Jensen <jesper@jnsn.dev>2026-02-18 22:14:54 +0100
commit8d3257fe558727a3d64902e27539b5a5c28ba49f (patch)
tree33d97cdcf4dd89f3e396b522d14edcca65106708 /Dockerfile
parent5fbbd990d6b42f5e7534cdb68fa5c368a4a69169 (diff)
Stop stalled backups
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..57cc35c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,22 @@
+FROM alpine:3.23.2@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62 AS build
+
+RUN apk add --no-cache gcc make musl-dev sqlite-dev libmicrohttpd-dev cjson-dev
+
+COPY . /app
+
+WORKDIR /app
+RUN make app
+
+
+FROM alpine:3.23.2@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62
+
+RUN apk add --no-cache libgcc sqlite-libs libmicrohttpd cjson \
+ && mkdir /config
+
+COPY --from=build /app/app /app/app
+
+VOLUME /workdir
+VOLUME /data
+EXPOSE 9090
+
+CMD [ "/app/app", "8080" ]