use openssl instead of libressl
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Daniel Wolf 2021-08-22 12:13:38 -04:00
parent 3a1b3ebd79
commit 0f9bb96307
Signed by: nephatrine
GPG Key ID: 59D70EC2E4AAB4D0
3 changed files with 24 additions and 30 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
fix-perms.sh
sign-build.sh
test-build.sh

View File

@ -1,26 +1,21 @@
FROM nephatrine/alpine-s6:latest
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
RUN echo "====== INSTALL PACKAGES ======" \
&& apk add certbot geoip libgd libxslt pcre py3-pip \
&& pip install zope.component \
&& rm -rf /var/cache/apk/*
ARG NGINX_VERSION=branches/default
RUN echo "====== COMPILE NGINX ======" \
&& apk add --virtual .build-nginx \
build-base \
gd-dev \
geoip-dev \
git \
libatomic_ops-dev \
libressl-dev \
libxml2-dev \
libxslt-dev \
linux-headers \
pcre-dev \
zlib-dev \
&& apk add \
certbot \
geoip \
libgd libxslt \
pcre \
py3-pip \
&& apk add --virtual .build-nginx build-base \
gd-dev geoip-dev git \
libatomic_ops-dev libxml2-dev libxslt-dev linux-headers \
openssl-dev \
pcre-dev \
zlib-dev \
&& pip install zope.component \
&& git -C /usr/src clone -b "$NGINX_VERSION" --single-branch --depth=1 https://github.com/nginx/nginx.git && cd /usr/src/nginx \
&& ./auto/configure \
--prefix=/var/www \
@ -67,15 +62,13 @@ RUN echo "====== COMPILE NGINX ======" \
--with-pcre \
--with-pcre-jit \
--with-libatomic \
&& make -j4 CFLAGS="-DTLS1_3_VERSION=0x0304" \
&& make -j4 \
&& make install \
&& strip /usr/sbin/nginx \
&& strip /usr/lib/nginx/modules/*.so \
&& mkdir -p /var/cache/nginx \
&& cd /usr/src && rm -rf /usr/src/* \
&& apk del --purge .build-nginx && rm -rf /var/cache/apk/*
RUN echo "====== CONFIGURE SYSTEM ======" \
&& mkdir -p /var/cache/nginx
COPY override /
EXPOSE 80/tcp 443/tcp
EXPOSE 80/tcp 443/tcp

View File

@ -1,4 +1,4 @@
[Git](https://code.nephatrine.net/nephatrine/docker-nginx-ssl) |
[Git](https://code.nephatrine.net/nephatrine/docker-nginx-ssl/src/branch/master) |
[Docker](https://hub.docker.com/r/nephatrine/nginx-ssl/) |
[unRAID](https://code.nephatrine.net/nephatrine/unraid-containers)
@ -9,6 +9,9 @@
This docker container manages the NGINX application, a lightweight web server
and reverse proxy.
- [Alpine Linux](https://alpinelinux.org/)
- [Skarnet Software](https://skarnet.org/software/)
- [S6 Overlay](https://github.com/just-containers/s6-overlay)
- [CertBot](https://certbot.eff.org/)
- [NGINX](https://www.nginx.com/)
@ -24,11 +27,9 @@ PHP or MySQL are not included.
## Docker Tags
- **nephatrine/nginx-ssl:testing**: NGINX Master
- **nephatrine/nginx-ssl:latest**: NGINX Default
- **nephatrine/nginx-ssl:mainline**: NGINX Default
- **nephatrine/nginx-ssl:stable**: NGINX 1.20
- **nephatrine/nginx-ssl:1.20**: NGINX 1.20
- **nephatrine/nginx-ssl:testing**: NGINX Mainline / Alpine Edge
- **nephatrine/nginx-ssl:latest**: NGINX Mainline / Alpine Latest
- **nephatrine/nginx-ssl:mainline**: NGINX Mainline / Alpine Latest
## Configuration Variables