diff options
| author | Jan Wolff <janw@mailbox.org> | 2025-09-15 18:30:03 +0200 |
|---|---|---|
| committer | Jan Wolff <janw@mailbox.org> | 2025-09-15 18:30:03 +0200 |
| commit | 4d714f577cae3d392929b0adb8081145f25e0c13 (patch) | |
| tree | f5c463f779bb932f859d242124a3427c89767e9a /Dockerfile | |
| parent | dc78e94ea9a49af338a72a91ef7c344f0cef3894 (diff) | |
add Dockerfilemain
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 9 |
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" ] |
