forked from 8x8Cloud/knox
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.certbot-route53
56 lines (46 loc) · 1.95 KB
/
Dockerfile.certbot-route53
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Apache Software License 2.0
#
# Copyright (c) 2020, Lance Johnson.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Built with following command:
#
# docker build --no-cache=true -t 8x8cloud/knox:certbot-route53 -f Dockerfile.certbot-route53 .
ARG IMAGE_URL=certbot/dns-route53
ARG IMAGE_TAG=latest
FROM $IMAGE_URL:$IMAGE_TAG as base
FROM base as builder
# Dependencies for python packages
RUN apk update && apk upgrade
RUN apk --no-cache add --virtual .buildset build-base gcc libffi-dev openssl-dev curl jq
COPY /src/knox/requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
RUN pip install knox==0.1.14
# Install kubectl
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
RUN curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
#RUN echo "$(<kubectl.sha256) kubectl" | sha256sum -c
RUN chmod u+x kubectl && mv kubectl /bin/kubectl
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.maintainer="lance.johnson@8x8.com" \
org.label-schema.name="8x8cloud/knox" \
org.label-schema.description="Certificate management using a Vault backend" \
org.label-schema.url="https://knox.readthedocs.org" \
org.label-schema.vcs-url="git@github.com/8x8cloud/knox.git" \
org.label-schema.vendor="8x8" \
org.label-schema.version='0.1.14'
COPY /src /app
WORKDIR /app
ENTRYPOINT ["/usr/bin/env"]
CMD ["bash"]