This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
forked from zlabjp/nghttpx-ingress-lb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (42 loc) · 1.89 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
47
48
49
# Copyright 2015 The Kubernetes Authors. All rights reserved.
#
# 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
#
# http://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.
# Copyright 2016, Z Lab Corporation. All rights reserved.
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y git g++ make binutils autoconf automake autotools-dev libtool pkg-config \
zlib1g-dev libssl-dev libev-dev libjemalloc-dev ruby-dev libc-ares-dev bison \
zlib1g libssl1.0.0 libev4 libjemalloc1 libc-ares2 \
diffutils ca-certificates psmisc \
python \
--no-install-recommends && \
git clone -b v1.22.0 --depth 1 https://github.com/nghttp2/nghttp2.git && \
cd nghttp2 && \
git submodule update --init && autoreconf -i && \
./configure --disable-examples --disable-hpack-tools --disable-python-bindings --with-mruby --with-neverbleed && \
make install-strip && \
cd .. && \
rm -rf nghttp2 && \
apt-get -y purge git g++ make binutils autoconf automake autotools-dev libtool pkg-config \
zlib1g-dev libssl-dev libev-dev libjemalloc-dev ruby-dev libc-ares-dev bison && \
apt-get -y autoremove --purge && \
apt-get clean
RUN mkdir -p /var/log/nghttpx
COPY nghttpx-ingress-controller /
COPY nghttpx.tmpl /
COPY nghttpx-backend.tmpl /
COPY default.tmpl /
WORKDIR /
CMD ["/nghttpx-ingress-controller"]