mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 23:25:36 +03:00
ci: Improve docker build
Signed-off-by: Yan Minari <yangm97@gmail.com>
This commit is contained in:
parent
0a039b79ec
commit
70a36ba827
3 changed files with 37 additions and 51 deletions
10
contrib/docker/ci/alpine/Dockerfile
Normal file
10
contrib/docker/ci/alpine/Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM alpine
|
||||
|
||||
ARG BUILDPLATFORM
|
||||
ENV TARGETPLATFORM=$TARGETPLATFORM
|
||||
|
||||
COPY ${TARGETPLATFORM}/* /usr/bin/
|
||||
|
||||
COPY contrib/docker/alpine/entrypoint.sh /usr/bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT [ "/usr/bin/entrypoint.sh" ]
|
9
contrib/docker/ci/scratch/Dockerfile
Normal file
9
contrib/docker/ci/scratch/Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM scratch
|
||||
|
||||
ENV XDG_RUNTIME_DIR /
|
||||
ENV XDG_CONFIG_DIRS /
|
||||
|
||||
COPY yggdrasil /
|
||||
COPY yggdrasilctl /
|
||||
|
||||
ENTRYPOINT ["/yggdrasil"]
|
Loading…
Add table
Add a link
Reference in a new issue