Add non-scratch based prod image
This commit is contained in:
parent
a83b135d14
commit
1e61022f51
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
.git
|
||||
|
13
full.dockerfile
Normal file
13
full.dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user