This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
46 lines (40 loc) · 1.62 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# vim:set sw=8 ts=8 noet:
#
# Copyright (c) 2016-2017 Torchbox Ltd.
#
# Permission is granted to anyone to use this software for any purpose,
# including commercial applications, and to alter it and redistribute it
# freely.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
FROM torchbox/trafficserver:7.1.x-1.0
ARG build_id=unknown
COPY . /usr/src/k8s-ts-ingress
RUN set -ex \
&& apt-get update \
&& apt-get -y install libssl1.0-dev libjson-c3 libjson-c-dev libc6-dev \
make gcc g++ pkgconf libcurl3 libcurl4-openssl-dev autoconf \
zlib1g-dev \
&& cd /usr/src/k8s-ts-ingress \
&& autoreconf -if \
&& ./configure --with-tsxs=/usr/local/bin/tsxs \
--with-build-id=$build_id \
&& make \
&& make test \
&& make install \
&& apt-get -y remove libjson-c-dev libc6-dev gcc make pkgconf \
libcurl4-openssl-dev autoconf libssl1.0-dev \
&& apt-get -y autoremove \
&& cd / \
&& rm -rf /var/cache/apt /var/lib/apt/lists/* /usr/src/k8s-ts-ingress
COPY docker/init.sh /
RUN chmod 755 /init.sh
COPY docker/remap.config docker/records.config docker/plugin.config \
docker/ip_allow.config /usr/local/etc/trafficserver/
CMD [ "/init.sh" ]