Skip to content

Commit

Permalink
Upgrade nginx to v1.27.1
Browse files Browse the repository at this point in the history
  • Loading branch information
itskingori committed Oct 1, 2024
1 parent 35dcadb commit 4262e2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.27.1

* Update base image to `zappi/nginx:1.27.1`.

## 1.25.4

* Add `X-Request-Start` header set to current time with millisecond precision.
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM zappi/nginx:1.25.4 as builder
FROM zappi/nginx:1.27.1 as builder

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

USER root

Expand All @@ -16,9 +16,9 @@ RUN apt-get update -y && \
WORKDIR /usr/src/

# Download nginx source
ARG NGINX_VERSION="1.25.4"
ARG NGINX_VERSION="1.27.1"
ARG NGINX_PKG="nginx-${NGINX_VERSION}.tar.gz"
ARG NGINX_SHA="760729901acbaa517996e681ee6ea259032985e37c2768beef80df3a877deed9"
ARG NGINX_SHA="bd7ba68a6ce1ea3768b771c7e2ab4955a59fb1b1ae8d554fedb6c2304104bdfc"
RUN wget "http://nginx.org/download/${NGINX_PKG}" && \
echo "${NGINX_SHA} *${NGINX_PKG}" | sha256sum -c - && \
tar --no-same-owner -xzf ${NGINX_PKG} --one-top-level=nginx --strip-components=1
Expand All @@ -37,7 +37,7 @@ RUN cd nginx && \
make modules

# Production container starts here
FROM zappi/nginx:1.25.4
FROM zappi/nginx:1.27.1

USER root

Expand Down

0 comments on commit 4262e2e

Please sign in to comment.