nginx-ingress-controller: update Dockerfile for dropped privileges in nginx-slim
This commit is contained in:
parent
7935bf2e05
commit
a79d82dd5a
1 changed files with 3 additions and 1 deletions
|
@ -12,8 +12,9 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM gcr.io/google_containers/nginx-slim-amd64:0.18
|
FROM gcr.io/google_containers/nginx-slim-amd64:0.19
|
||||||
|
|
||||||
|
USER root
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
|
||||||
diffutils \
|
diffutils \
|
||||||
--no-install-recommends \
|
--no-install-recommends \
|
||||||
|
@ -26,4 +27,5 @@ ENTRYPOINT ["/sbin/tini", "--"]
|
||||||
|
|
||||||
COPY . /
|
COPY . /
|
||||||
|
|
||||||
|
USER nginx
|
||||||
CMD ["/nginx-ingress-controller"]
|
CMD ["/nginx-ingress-controller"]
|
||||||
|
|
Loading…
Reference in a new issue