diff options
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" ] |
