Skip to content

Commit

Permalink
Update Dockerfile-QUIC
Browse files Browse the repository at this point in the history
Signed-off-by: PI <[email protected]>
  • Loading branch information
pi-314159 authored Aug 23, 2024
1 parent 6b2402d commit f7fdfce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nginx/Dockerfile-QUIC
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN apt update && apt upgrade -y && mkdir /home/build && cd /home/build && \
# prepare dir
cp -p ssl/libssl.so /usr/local/lib && cp -p crypto/libcrypto.so /usr/local/lib && cd ../.. && \
# Download nginx
wget https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz -O nginx.tgz && tar xvf nginx.tgz && \
wget https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz -O nginx.tgz && tar xvf nginx.tgz && mv nginx-${NGINX_VERSION} nginx && \
# build nginx
cd nginx-${NGINX_VERSION} && \
./configure \
Expand Down Expand Up @@ -62,9 +62,8 @@ RUN apt update && apt upgrade -y && mkdir /home/build && cd /home/build && \
make

FROM ubuntu:latest
ARG NGINX_VERSION=1.26.1
COPY --from=build /home/build/nginx-${NGINX_VERSION}/objs/nginx /usr/sbin/nginx
COPY --from=build /home/build/nginx-${NGINX_VERSION}/conf /etc/nginx
COPY --from=build /home/build/nginx/objs/nginx /usr/sbin/nginx
COPY --from=build /home/build/nginx/conf /etc/nginx
COPY --from=build /usr/local/lib /usr/local/lib
RUN set -x \
&& apt update && apt upgrade -y && apt install --no-install-recommends --no-install-suggests -y adduser libpcre3 && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list \
Expand Down

0 comments on commit f7fdfce

Please sign in to comment.