From c9c7dfd8560a97a998b7d0d77e8c695f80dce1d0 Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 9 Nov 2023 17:17:35 +0800 Subject: [PATCH] Support pw feeder branch as build arg & bump debian image ver (#16) * add build arg PW_FEEDER_BRANCH * Bump debian from bullseye-20231009 to bullseye-20231030 --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1420a20..5250466 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,18 @@ FROM golang:1.21.4-bullseye AS pw_feeder_builder + +ARG PW_FEEDER_BRANCH + SHELL ["/bin/bash", "-o", "pipefail", "-c"] + RUN set -x && \ apt-get update && \ apt-get install -y --no-install-recommends ca-certificates && \ - git clone --branch main https://github.com/plane-watch/pw-feeder.git /src/pw-feeder && \ + git clone --branch "${PW_FEEDER_BRANCH:-main}" https://github.com/plane-watch/pw-feeder.git /src/pw-feeder && \ pushd /src/pw-feeder/pw-feeder && \ go mod tidy && \ go build ./... -FROM debian:bullseye-20231009 +FROM debian:bullseye-20231030 ENV BEASTPORT=30005 \ MLATSERVERHOST=127.0.0.1 \