summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJan Wolff <janw@mailbox.org>2025-09-15 18:30:03 +0200
committerJan Wolff <janw@mailbox.org>2025-09-15 18:30:03 +0200
commit4d714f577cae3d392929b0adb8081145f25e0c13 (patch)
treef5c463f779bb932f859d242124a3427c89767e9a /Dockerfile
parentdc78e94ea9a49af338a72a91ef7c344f0cef3894 (diff)
add Dockerfilemain
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..5db6279
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,9 @@
+FROM docker.io/library/golang:1 AS builder
+COPY . /app
+WORKDIR /app
+RUN CGO_ENABLED=0 go build -o drop.janw.name
+
+
+FROM scratch
+COPY --from=builder /app/drop.janw.name /drop.janw.name
+ENTRYPOINT [ "/drop.janw.name", "-c", "/config.json" ]