Skip to content

Commit

Permalink
update: nginx, openssl and libmaxmind versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gokaygurcan authored Jul 23, 2024
1 parent 84b4de6 commit d772660
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 22 deletions.
25 changes: 6 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ FROM gokaygurcan/ubuntu:latest
# metadata
LABEL maintainer "Gökay Gürcan <[email protected]>"

ENV DEBIAN_FRONTEND="noninteractive" \
USR_SRC=/usr/src \
ARG DEBIAN_FRONTEND=noninteractive
ENV USR_SRC=/usr/src \
USR_SRC_NGINX=/usr/src/nginx \
USR_SRC_NGINX_MODS=/usr/src/nginx/modules \
NGINX_VERSION=1.25.3 \
OPENSSL_VERSION=1.1.1w \
# PAGESPEED_VERSION=1.13.35.2 \
LIBMAXMINDDB_VERSION=1.8.0
NGINX_VERSION=1.27.0 \
OPENSSL_VERSION=3.3.1 \
LIBMAXMINDDB_VERSION=1.10.0

USER root

Expand Down Expand Up @@ -109,17 +108,6 @@ RUN set -ex && \
tar -xzf aperezdc-ngx-fancyindex-*.tar.gz && \
rm aperezdc-ngx-fancyindex-*.tar.gz && \
mv aperezdc-ngx-fancyindex-* fancyindex
# && \
# apache/incubator-pagespeed-ngx and psol
# wget -q https://github.com/apache/incubator-pagespeed-ngx/archive/v${PAGESPEED_VERSION}-stable.tar.gz && \
# tar -xzf v${PAGESPEED_VERSION}-stable.tar.gz && \
# rm v${PAGESPEED_VERSION}-stable.tar.gz && \
# mv *-pagespeed-* pagespeed && \
# cd ${USR_SRC_NGINX_MODS}/pagespeed && \
# wget -q https://dl.google.com/dl/page-speed/psol/${PAGESPEED_VERSION}-x64.tar.gz && \
# tar -xzf ${PAGESPEED_VERSION}-x64.tar.gz && \
# rm ${PAGESPEED_VERSION}-x64.tar.gz && \
# mkdir -p /var/cache/ngx_pagespeed

# compile nginx
RUN cd ${USR_SRC_NGINX} && \
Expand Down Expand Up @@ -160,7 +148,6 @@ RUN cd ${USR_SRC_NGINX} && \
--without-http_uwsgi_module \
--without-http_scgi_module \
--add-module=${USR_SRC_NGINX_MODS}/njs/nginx \
# --add-module=${USR_SRC_NGINX_MODS}/pagespeed \
--add-module=${USR_SRC_NGINX_MODS}/geoip2 \
--add-module=${USR_SRC_NGINX_MODS}/headers-more \
--add-module=${USR_SRC_NGINX_MODS}/cache-purge \
Expand Down Expand Up @@ -201,6 +188,6 @@ STOPSIGNAL SIGTERM

USER ubuntu

HEALTHCHECK CMD curl -f http://localhost/ || exit 1
HEALTHCHECK --interval=60s --start-period=60s CMD curl -f http://localhost/ || exit 1

CMD [ "sudo", "nginx", "-g", "daemon off;" ]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

| Variable | Version |
| -------------------- | ---------------------- |
| NGINX_VERSION | 1.22.0 |
| OPENSSL_VERSION | 1.1.1p |
| LIBMAXMINDDB_VERSION | 1.6.0 |
| NGINX_VERSION | 1.27.0 |
| OPENSSL_VERSION | 3.3.1 |
| LIBMAXMINDDB_VERSION | 1.10.0 |

## Additional packages

Expand Down

0 comments on commit d772660

Please sign in to comment.