Skip to content

Commit

Permalink
feat: add http3 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
wokalek committed Jul 26, 2023
1 parent 357798e commit ff92fab
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
ARG ALPINE_VERSION=3.18.2
ARG NGINX_VERSION=1.25.1
ARG PCRE2_VERSION=10.42
ARG OPENSSL_VERSION=3.1.1
ARG BROTLI_COMMIT=6e975bcb015f62e1f303054897783355e2a877dc

FROM alpine:$ALPINE_VERSION AS build

ARG NGINX_VERSION
ARG PCRE2_VERSION
ARG OPENSSL_VERSION
ARG BROTLI_COMMIT

WORKDIR /src

RUN \
# Dependencies
apk add --no-cache git make gcc openssl-dev zlib-dev linux-headers g++ && \
apk add --no-cache git make gcc openssl-dev zlib-dev linux-headers g++ perl-dev && \
# Brotli
mkdir ngx_brotli && \
cd ngx_brotli && \
Expand All @@ -23,6 +25,15 @@ RUN \
git checkout FETCH_HEAD && \
git submodule update --init --recursive --depth 1 && \
cd .. && \
# OpenSSL
mkdir openssl && \
cd openssl && \
git init && \
git remote add origin https://github.com/quictls/openssl.git && \
git fetch --depth 1 origin openssl-$OPENSSL_VERSION && \
git checkout FETCH_HEAD && \
git submodule update --init --recursive --depth 1 && \
cd .. && \
# PCRE2
wget -O - https://github.com/PCRE2Project/pcre2/releases/download/pcre2-$PCRE2_VERSION/pcre2-$PCRE2_VERSION.tar.gz | tar xz && \
# Nginx
Expand Down Expand Up @@ -72,7 +83,9 @@ RUN \
--with-stream_ssl_preread_module \
--with-pcre=/src/pcre2-$PCRE2_VERSION \
--with-pcre-jit \
--add-module=/src/ngx_brotli && \
--add-module=/src/ngx_brotli \
--with-openssl="/src/openssl" \
--with-openssl-opt="no-ssl2 no-ssl3 no-weak-ssl-ciphers" && \
make && \
make install

Expand Down

0 comments on commit ff92fab

Please sign in to comment.