mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 23:25:36 +03:00
CI: Fix dockerfiles
Signed-off-by: Yan Minari <yangm97@gmail.com>
This commit is contained in:
parent
55b3ab3c71
commit
ed569e4578
3 changed files with 7 additions and 3 deletions
|
@ -4,6 +4,8 @@ set -e
|
|||
|
||||
CONF_DIR="/etc/yggdrasil-network"
|
||||
|
||||
mkdir -p $CONF_DIR
|
||||
|
||||
if [ ! -f "$CONF_DIR/config.conf" ]; then
|
||||
echo "generate $CONF_DIR/config.conf"
|
||||
yggdrasil --genconf > "$CONF_DIR/config.conf"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
FROM alpine
|
||||
|
||||
ARG BUILDPLATFORM
|
||||
ARG TARGETPLATFORM
|
||||
ENV TARGETPLATFORM=$TARGETPLATFORM
|
||||
|
||||
COPY ${TARGETPLATFORM}/* /usr/bin/
|
||||
|
|
|
@ -3,7 +3,9 @@ FROM scratch
|
|||
ENV XDG_RUNTIME_DIR /
|
||||
ENV XDG_CONFIG_DIRS /
|
||||
|
||||
COPY yggdrasil /
|
||||
COPY yggdrasilctl /
|
||||
ARG TARGETPLATFORM
|
||||
ENV TARGETPLATFORM=$TARGETPLATFORM
|
||||
|
||||
COPY ${TARGETPLATFORM}/* /
|
||||
|
||||
ENTRYPOINT ["/yggdrasil"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue