From 532f30c15595c9f258597f9a9fc0e70160ebc805 Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 26 Jun 2024 15:00:07 +0200 Subject: [PATCH] chore: remove artefact Dockerfile --- misc/images/bouncer/Dockerfile | 49 ---------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 misc/images/bouncer/Dockerfile diff --git a/misc/images/bouncer/Dockerfile b/misc/images/bouncer/Dockerfile deleted file mode 100644 index 9e8607d..0000000 --- a/misc/images/bouncer/Dockerfile +++ /dev/null @@ -1,49 +0,0 @@ -FROM golang:1.20 AS BUILD - -RUN apt-get update \ - && apt-get install -y make - -ARG YQ_VERSION=4.34.1 - -RUN mkdir -p /usr/local/bin \ - && wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_amd64 \ - && chmod +x /usr/local/bin/yq - -COPY . /src - -WORKDIR /src - -RUN make GORELEASER_ARGS='build --rm-dist --single-target --snapshot' goreleaser - -# Patch config -RUN /src/dist/bouncer_linux_amd64_v1/bouncer -c '' config dump > /src/dist/bouncer_linux_amd64_v1/config.yml \ - && yq -i '.layers.queue.templateDir = "/usr/share/bouncer/layers/queue/templates"' /src/dist/bouncer_linux_amd64_v1/config.yml \ - && yq -i '.admin.auth.privateKey = "/etc/bouncer/admin-key.json"' /src/dist/bouncer_linux_amd64_v1/config.yml \ - && yq -i '.redis.adresses = ["redis:6379"]' /src/dist/bouncer_linux_amd64_v1/config.yml - -FROM alpine:3.18 AS RUNTIME - -ARG DUMB_INIT_VERSION=1.2.5 - -RUN apk add --no-cache ca-certificates - -RUN mkdir -p /usr/local/bin \ - && wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64 \ - && chmod +x /usr/local/bin/dumb-init - -ENTRYPOINT ["/usr/local/bin/dumb-init", "--"] - -RUN mkdir -p /usr/local/bin /usr/share/bouncer/bin /etc/bouncer - -COPY --from=BUILD /src/dist/bouncer_linux_amd64_v1/bouncer /usr/share/bouncer/bin/bouncer -COPY --from=BUILD /src/layers /usr/share/bouncer/layers -COPY --from=BUILD /src/dist/bouncer_linux_amd64_v1/config.yml /etc/bouncer/config.yml - -RUN ln -s /usr/share/bouncer/bin/bouncer /usr/local/bin/bouncer - -EXPOSE 8080 -EXPOSE 8081 - -ENV BOUNCER_CONFIG=/etc/bouncer/config.yml - -CMD ["bouncer"] \ No newline at end of file