Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile to 1.23.4-alpine #24

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM nginx:1.19.6-alpine AS builder
FROM nginx:1.25-alpine AS builder

ENV NCHAN_VERSION 1.2.5
ENV NCHAN_VERSION 1.3.6

RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \
apk add --virtual .build-deps \
Expand All @@ -27,12 +27,12 @@ RUN CONFARGS=$(nginx -V 2>&1 | sed -n -e 's/^.*arguments: //p') \
./configure --with-compat $CONFARGS --add-dynamic-module=$NCHANDIR && \
make && make install

FROM nginx:1.19.6-alpine
FROM nginx:1.25-alpine-slim

COPY --from=builder /usr/local/nginx/modules/ngx_nchan_module.so /usr/local/nginx/modules/ngx_nchan_module.so

RUN apk add --update \
apache2-utils=2.4.53-r0 \
apache2-utils=2.4.58-r0 \
bash \
apk-tools \
busybox \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ server {
**NOTICE: Please use a tagged version for stability, latest tags are prone to change and might affect your running applications**

```docker
FROM safesecurity/nginx-nchan:latest
FROM darkflib/nginx-nchan:latest

COPY nchan-example.conf /etc/nginx/conf.d/
```
Expand Down
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Desc: Build script for nginx-nchan
# build for amd64, arm64
docker buildx build --pull --platform linux/amd64,linux/arm64 -t darkflib/nginx-nchan:latest -t darkflib/nginx-nchan:1.25 -t darkflib/nginx-nchan:1.25.3 --push .