From b179f8971b7bff63b61ab62c848894a339dc17f0 Mon Sep 17 00:00:00 2001 From: Joe Beveridge Date: Mon, 27 Jan 2025 14:36:44 -0500 Subject: [PATCH 1/2] chore: updating to use nginx-1.27.3 --- .github/workflows/main.yml | 2 +- Dockerfile | 2 +- README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2db3451..28e1c92 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ on: env: IMAGE_NAME: jbeveridge/nginx-distroless - NGINX_VERSION: 1.27.2 + NGINX_VERSION: 1.27.3 jobs: build: diff --git a/Dockerfile b/Dockerfile index 2db0c27..3b0a99b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Build stage FROM debian:bookworm-slim AS build -ARG NGINX_VERSION=1.27.2 +ARG NGINX_VERSION=1.27.3 WORKDIR /var/www/nginx-distroless RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections diff --git a/README.md b/README.md index 4819369..16d9d72 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,10 @@ ![Docker Pulls](https://img.shields.io/docker/pulls/jbeveridge/nginx-distroless) ![Docker Image Size](https://img.shields.io/docker/image-size/jbeveridge/nginx-distroless/latest) -This repository contains a Dockerfile that builds a lightweight distroless NGINX 1.27.2 image from source, based on the article [Smallest Distroless NGINX Container](https://medium.com/@rockmetoo/smallest-distroless-nginx-container-alpine-c08c3a9cac93). The NGINX build is customized with various modules and optimizations for security and performance. +This repository contains a Dockerfile that builds a lightweight distroless NGINX 1.27.3 image from source, based on the article [Smallest Distroless NGINX Container](https://medium.com/@rockmetoo/smallest-distroless-nginx-container-alpine-c08c3a9cac93). The NGINX build is customized with various modules and optimizations for security and performance. ## Table of Contents - +~~~~ - [Why Distroless](#why-distroless) - [Features](#features) - [Building the Docker Image](#building-the-docker-image) From 197c3ccaf0b3ea5f73a253cc838777dd4113c4b1 Mon Sep 17 00:00:00 2001 From: Joe Beveridge Date: Tue, 4 Feb 2025 08:51:39 -0500 Subject: [PATCH 2/2] fix: including build-essential package for s390x and powerpc64le builds --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3b0a99b..95207d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio # Install necessary libraries and dependencies to compile nginx RUN apt-get update && apt-get install -y \ - gcc g++ make unzip \ + build-essential gcc g++ make unzip \ libaio-dev libc-dev libxslt1-dev libxml2-dev zlib1g-dev \ libpcre3-dev libbz2-dev libssl-dev autoconf wget \ lsb-release apt-transport-https ca-certificates