From d7b332905bf68d0a501a3a76f132841f6e0b7257 Mon Sep 17 00:00:00 2001 From: Kieran Date: Sun, 29 Sep 2024 12:58:17 +0100 Subject: [PATCH] feat: build with labels for docker --- .drone.yml | 2 +- Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index e2331b3..ae72037 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,5 +18,5 @@ steps: - dockerd & - docker login -u kieran -p $TOKEN git.v0l.io - docker login -u voidic -p $TOKEN_DOCKER - - docker buildx build --push -t git.v0l.io/kieran/route96:latest -t voidic/route96:latest . + - docker buildx build --push -t git.v0l.io/kieran/route96:latest -t voidic/route96:latest --build-arg FEATURES="labels" . - kill $(cat /var/run/docker.pid) \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 0e8c3d3..5cd3449 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ ARG IMAGE=rust:bookworm +ARG FEATURES=labels FROM $IMAGE as build WORKDIR /app/src @@ -31,7 +32,7 @@ RUN git clone --depth=1 https://git.v0l.io/Kieran/FFmpeg.git && \ --disable-static \ --enable-shared && \ make -j8 && make install -RUN cargo install --path . --root /app/build +RUN cargo install --path . --root /app/build --features "${FEATURES}" FROM node:bookworm as ui_builder WORKDIR /app/src