Skip to content

Commit

Permalink
Update prometheus-auth to using BCI Micro as the base
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvind Iyengar committed Dec 12, 2022
1 parent 5e574da commit bdfad55
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
FROM alpine:3.15.4

MAINTAINER Frank Mai <[email protected]>

RUN apk add --no-cache --update \
curl openssl jq ca-certificates \
; \
mkdir -p /data; \
chown -R nobody:nogroup /data; \
mkdir -p /run/cache

COPY prometheus-auth /usr/bin/

ENTRYPOINT ["/usr/bin/prometheus-auth"]
FROM registry.suse.com/bci/bci-micro:15.3
RUN echo 'promauth:x:1000:1000::/home/promauth:/bin/bash' >> /etc/passwd && \
echo 'promauth:x:1000:' >> /etc/group && \
mkdir /home/promauth && \
chown -R promauth:promauth /home/promauth
COPY bin/prometheus-auth /usr/bin/
USER promauth
CMD ["prometheus-auth"]

0 comments on commit bdfad55

Please sign in to comment.