-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (23 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM alpine:3.15
LABEL description="SAML Metadata Query Tool" \
version="0.2.0" \
maintainer="[email protected]" \
org.opencontainers.image.source="https://github.com/Digital-Identity-Labs/mdqt-container"
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES=1
ENV MDQT_SERVICE=http://mdq.ukfederation.org.uk/
ADD gemrc /root/.gemrc
RUN apk update \
&& apk add ruby ruby-bigdecimal ruby-bundler ruby-io-console ruby-irb ca-certificates libressl libcurl libxslt libxml2 \
&& apk add --virtual build-dependencies build-base ruby-dev libressl-dev libxml2-dev libxslt-dev pcre-dev libffi-dev \
&& bundle config git.allow_insecure true \
&& gem install json --no-document \
&& gem install mdqt xmldsig --no-document \
&& gem cleanup \
&& apk del build-dependencies \
&& rm -rf /usr/lib/ruby/gems/*/cache/* /var/cache/apk/* /tmp/* /var/tmp/*
RUN mkdir -p /opt/app && adduser -S mdqt && chown -R mdqt /opt/app
USER mdqt
WORKDIR /opt/app
ADD example.pem /opt/app
ENTRYPOINT ["mdqt"]
CMD []