-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
29 lines (24 loc) · 1.48 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
FROM debian:buster
MAINTAINER Shaker Qawasmi "http://github.com/sqawasmi"
ARG TRAFFIC_SERVER_VERSION=9.1.1
# Update the package repository
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y curl locales build-essential bzip2 libssl-dev libxml2-dev libpcre3-dev tcl-dev libboost-dev \
&& rm -rf /var/lib/apt/lists/* \
&& export LANGUAGE=en_US.UTF-8 LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 \
&& echo "LC_ALL=en_US.UTF-8" >> /etc/environment && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && echo "LANG=en_US.UTF-8" > /etc/locale.conf \
&& locale-gen en_US.UTF-8 \
&& DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales \
&& mkdir -p /tmp/trafficserver \
&& curl -L https://downloads.apache.org/trafficserver/trafficserver-${TRAFFIC_SERVER_VERSION}.tar.bz2 | tar xjvf - -C /tmp/trafficserver --strip-components 1 \
&& cd /tmp/trafficserver && ./configure --prefix=/opt/trafficserver \
&& cd /tmp/trafficserver && make \
&& cd /tmp/trafficserver && make install \
&& mv /opt/trafficserver/etc/trafficserver /etc/trafficserver \
&& ln -sf /etc/trafficserver /opt/trafficserver/etc/trafficserver \
&& rm -rf /tmp/trafficserver
#RUN rm -rf /opt/trafficserver/etc/trafficserver
#ADD ./files/etc/trafficserver /etc/trafficserver
EXPOSE 8080
CMD ["/opt/trafficserver/bin/traffic_server"]