diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..d436eab --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git + diff --git a/full.dockerfile b/full.dockerfile new file mode 100644 index 0000000..52f8fe0 --- /dev/null +++ b/full.dockerfile @@ -0,0 +1,13 @@ +# This version does not run as a "FROM scratch" container. +# Useful on systems where the other version does not work for unknown reasons. + +FROM docker.io/library/golang:1.19-bullseye as dev + +FROM dev as intermediate + +COPY . /build +WORKDIR /build +RUN go build -o /doddns + +WORKDIR / +ENTRYPOINT ["/doddns"]