CI: Fix dockerfiles

Signed-off-by: Yan Minari <yangm97@gmail.com>
This commit is contained in:
Yan Minari 2019-07-18 17:48:04 -03:00
parent 55b3ab3c71
commit ed569e4578
No known key found for this signature in database
GPG key ID: CC7D230C1C6ED7E2
3 changed files with 7 additions and 3 deletions

View file

@ -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"

View file

@ -1,6 +1,6 @@
FROM alpine
ARG BUILDPLATFORM
ARG TARGETPLATFORM
ENV TARGETPLATFORM=$TARGETPLATFORM
COPY ${TARGETPLATFORM}/* /usr/bin/

View file

@ -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"]