Skip to content

Commit

Permalink
Support pw feeder branch as build arg & bump debian image ver (#16)
Browse files Browse the repository at this point in the history
* add build arg PW_FEEDER_BRANCH

* Bump debian from bullseye-20231009 to bullseye-20231030
  • Loading branch information
mikenye authored Nov 9, 2023
1 parent e1aa0b7 commit c9c7dfd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit c9c7dfd

Please sign in to comment.