From fc68d6e6968a5c681bbc4684ecee15f2cecefe81 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 2 Sep 2021 13:07:27 +0430 Subject: filtron and morty arm builders --- searx/filtron/Dockerfile | 11 +++++++++++ searx/filtron/run.sh | 7 +++++++ searx/morty/Dockerfile | 13 +++++++++++++ searx/morty/run.sh | 7 +++++++ 4 files changed, 38 insertions(+) create mode 100644 searx/filtron/Dockerfile create mode 100755 searx/filtron/run.sh create mode 100644 searx/morty/Dockerfile create mode 100755 searx/morty/run.sh diff --git a/searx/filtron/Dockerfile b/searx/filtron/Dockerfile new file mode 100644 index 0000000..35bea32 --- /dev/null +++ b/searx/filtron/Dockerfile @@ -0,0 +1,11 @@ +FROM alpine:3.13 as builder +RUN apk update && apk upgrade && apk add go git +RUN git clone https://github.com/asciimoo/filtron +RUN cd filtron && go build + +FROM alpine:3.13 +COPY --from=builder /filtron/filtron /usr/local/filtron/ +RUN apk --no-cache add ca-certificates \ + && adduser -D -h /usr/local/filtron -s /bin/false filtron filtron +USER filtron +EXPOSE 4005 diff --git a/searx/filtron/run.sh b/searx/filtron/run.sh new file mode 100755 index 0000000..20a1545 --- /dev/null +++ b/searx/filtron/run.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh +set -e +set -x + +docker buildx create armbuilder +docker buildx use armbuilder +docker buildx build --push --platform linux/arm/v7,linux/arm/v8,linux/amd64 --tag bloodstalker/filtron . diff --git a/searx/morty/Dockerfile b/searx/morty/Dockerfile new file mode 100644 index 0000000..59da7b4 --- /dev/null +++ b/searx/morty/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine:3.13 as builder +RUN apk update && apk upgrade && apk add go git +RUN git clone https://github.com/asciimoo/morty +RUN cd morty && go build + +FROM alpine:3.13 +COPY --from=builder /morty/morty /usr/local/morty/ +RUN apk --no-cache add ca-certificates \ +&& rm -f /var/cache/apk/* \ +&& adduser -D -h /usr/local/morty -s /bin/false morty morty +USER morty +ENV DEBUG=true +EXPOSE 3000 diff --git a/searx/morty/run.sh b/searx/morty/run.sh new file mode 100755 index 0000000..8774336 --- /dev/null +++ b/searx/morty/run.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh +set -e +set -x + +# docker buildx create --name armbuilder +docker buildx use armbuilder +docker buildx build --push --platform linux/arm/v7,linux/arm/v8,linux/amd64 --tag bloodstalker/morty . -- cgit v1.2.3