Update nginx to v0.29
This commit is contained in:
parent
96e6e04119
commit
f4cbf7b888
2 changed files with 33 additions and 15 deletions
|
|
@ -16,22 +16,18 @@ FROM BASEIMAGE
|
|||
|
||||
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
|
||||
|
||||
RUN if grep -q -i "ports.ubuntu.com" /etc/apt/sources.list; \
|
||||
then \
|
||||
echo "deb http://ports.ubuntu.com/ubuntu-ports zesty universe" >> /etc/apt/sources.list; \
|
||||
else \
|
||||
echo "deb http://archive.ubuntu.com/ubuntu zesty universe" >> /etc/apt/sources.list; \
|
||||
fi \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get update \
|
||||
&& apt-get install -y \
|
||||
diffutils \
|
||||
dumb-init \
|
||||
--no-install-recommends \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN clean-install \
|
||||
diffutils \
|
||||
dumb-init
|
||||
|
||||
ENTRYPOINT ["/usr/bin/dumb-init"]
|
||||
# Create symlinks to redirect nginx logs to stdout and stderr docker log collector
|
||||
# This only works if nginx is started with CMD or ENTRYPOINT
|
||||
RUN mkdir -p /var/log/nginx \
|
||||
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
||||
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
||||
|
||||
COPY . /
|
||||
|
||||
ENTRYPOINT ["/usr/bin/dumb-init"]
|
||||
|
||||
CMD ["/nginx-ingress-controller"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue