routing-lab/alice-lg/Dockerfile

15 lines
576 B
Text
Raw Normal View History

2023-12-10 02:52:44 +01:00
FROM debian:bookworm AS builder
RUN apt update \
&& apt install --yes curl jq \
&& curl https://api.github.com/repos/alice-lg/alice-lg/releases \
| jq -r '.[0].assets[] | select(.name | test("alice-lg_.*_linux_x86_64.tar.gz")).browser_download_url' | xargs curl -L -o /tmp/alice-lg.tar.gz \
&& tar -C /bin -xf /tmp/alice-lg.tar.gz alice-lg \
&& chmod +x /bin/alice-lg
FROM scratch
COPY --from=builder /bin/alice-lg /bin/alice-lg
ADD alice.conf /etc/alice-lg/alice.conf
EXPOSE 3000 7340
ENTRYPOINT ["/bin/alice-lg", "-config", "/etc/alice-lg/alice.conf"]