2017-01-31 18:19:58 +00:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
2017-04-11 13:49:15 +00:00
|
|
|
FROM BASEIMAGE
|
|
|
|
|
|
|
|
CROSS_BUILD_COPY qemu-ARCH-static /usr/bin/
|
2017-01-31 18:19:58 +00:00
|
|
|
|
2018-04-06 21:08:25 +00:00
|
|
|
COPY build.sh install_lua_resty_waf.sh /
|
2017-01-31 18:19:58 +00:00
|
|
|
|
2017-11-12 03:34:40 +00:00
|
|
|
RUN clean-install bash
|
|
|
|
|
|
|
|
RUN /build.sh
|
2017-01-31 18:19:58 +00:00
|
|
|
|
|
|
|
# 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 ln -sf /dev/stdout /var/log/nginx/access.log
|
|
|
|
RUN ln -sf /dev/stderr /var/log/nginx/error.log
|
|
|
|
|
|
|
|
EXPOSE 80 443
|
|
|
|
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|