mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 07:05:06 +03:00
Add FROM scratch docker image variant
Signed-off-by: Yan Minari <yangm97@gmail.com>
This commit is contained in:
parent
a2966291b9
commit
3731c9a826
2 changed files with 14 additions and 1 deletions
|
@ -1 +0,0 @@
|
||||||
contrib/docker/Dockerfile
|
|
1
Dockerfile
Symbolic link
1
Dockerfile
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
contrib/docker/scratch/Dockerfile
|
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