-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
38 lines (29 loc) · 933 Bytes
/
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
30
31
32
33
34
35
36
37
38
FROM oraclelinux:7-slim as base
LABEL MAINTAINER="Adrian Png <adrian.png@fuzziebrain.com>"
ENV LC_ALL=en_US.utf-8 \
LANG=en_US.utf-8 \
OCI_CLI_AUTH=instance_principal \
DOMAIN=example.com \
EMAIL=johndoe@example.com \
LB_OCID=ocid1.loadbalancer.oc1... \
LISTENER_NAME=https_listener \
WAF_OCID=ocid1.waaspolicy.oc1... \
DEPLOY_TARGET=LB \
DRY_RUN=N
COPY ./app/requirements.txt /tmp/
RUN yum install -y \
vi \
jq \
python3 \
python3-pip && \
rm -rf /var/cache/yum && \
pip3 install -r /tmp/requirements.txt && \
rm -f /tmp/requirements.txt
###############################################################################
FROM base
COPY ./app/cert-manager ./app/deploy-cert-to-lb /usr/local/bin/
RUN cd /usr/local/bin && \
chmod a+x cert-manager deploy-cert-to-lb
WORKDIR /root
#VOLUME ["/etc/letsencrypt"]
CMD ["/usr/local/bin/cert-manager"]