-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 732 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 732 Bytes
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
FROM centos/s2i-base-centos7
ENV LETSENCRYPT_SH_REF=v0.4.0 \
LETSENCRYPT_DATADIR=/var/lib/letsencrypt-container \
LETSENCRYPT_LIBEXECDIR=/usr/libexec/letsencrypt-container \
LETSENCRYPT_SHAREDIR=/usr/share/letsencrypt-container \
LETSENCRYPT_ACCOUNTSECRETDIR=/etc/openshift-letsencrypt
USER 0
RUN curl -sSL https://github.com/lukas2511/dehydrated/raw/$LETSENCRYPT_SH_REF/dehydrated \
-o /usr/bin/dehydrated \
&& chmod +x /usr/bin/dehydrated \
&& yum install -y epel-release \
&& yum install -y openssl curl nss_wrapper jq \
&& yum clean all
USER 1001
ADD libexec/ $LETSENCRYPT_LIBEXECDIR
ADD share/ $LETSENCRYPT_SHAREDIR
ENTRYPOINT ["/usr/libexec/letsencrypt-container/entrypoint"]
CMD ["usage"]