Skip to content
Snippets Groups Projects
Verified Commit 88f539f2 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[TLSCertsMonitor] Adapt Dockerfile

parent a6f1e37c
No related branches found
No related tags found
No related merge requests found
Pipeline #60118 failed
FROM alpine:3.9
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN apk add --no-cache python3 && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools -r requirements.txt && \
rm -r /root/.cache \
RUN apk add --no-cache python3 \
&& python3 -m ensurepip \
&& rm -r /usr/lib/python*/ensurepip
ENV TLS_CERTS_MONITOR_VERSION=v1.4
RUN wget -O /tmp/sources.tar.gz https://gitlab.utc.fr/picasoft/projets/tls-cert-monitor/-/archive/$TLS_CERTS_MONITOR_VERSION/tls-cert-monitor-$TLS_CERTS_MONITOR_VERSION.tar.gz \
&& mkdir /tmp/sources \
&& tar -xvf /tmp/sources.tar.gz --strip-components=1 -C /tmp/sources \
&& cp /tmp/sources/app/*.py ./ \
&& pip3 install --upgrade pip setuptools -r /tmp/sources/requirements.txt \
&& rm -r /root/.cache \
&& mkdir /certs
ENV acme_file "/certs/acme.json"
ENV cert_root "/output"
ENV log_level "INFO"
COPY app/*.py ./
ENTRYPOINT python3 ./tls_certs_monitor.py --acme-file=${acme_file} --output-dir=${cert_root} --loglevel=${log_level}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment