1
0

Add non-scratch based prod image

This commit is contained in:
Tony Grosinger 2023-01-10 16:20:10 +00:00
parent a83b135d14
commit 1e61022f51
2 changed files with 15 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
.git

13
full.dockerfile Normal file
View File

@ -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"]