mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 15:15:07 +03:00
Add FROM scratch docker image variant
Signed-off-by: Yan Minari <yangm97@gmail.com>
This commit is contained in:
parent
c11f08f2a3
commit
57d7423253
2 changed files with 14 additions and 1 deletions
13
contrib/docker/scratch/Dockerfile
Normal file
13
contrib/docker/scratch/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM golang as builder
|
||||
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 ./build
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder /var/run /var/run
|
||||
COPY --from=builder /src/yggdrasil /yggdrasil
|
||||
|
||||
ENTRYPOINT ["/yggdrasil"]
|
||||
CMD ["-autoconf"]
|
Loading…
Add table
Add a link
Reference in a new issue