From f7fdfce151535a0171980a81de79e17d305c57fe Mon Sep 17 00:00:00 2001 From: PI <74706004+pi-314159@users.noreply.github.com> Date: Fri, 23 Aug 2024 14:05:38 +0800 Subject: [PATCH] Update Dockerfile-QUIC Signed-off-by: PI <74706004+pi-314159@users.noreply.github.com> --- nginx/Dockerfile-QUIC | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nginx/Dockerfile-QUIC b/nginx/Dockerfile-QUIC index c827c432..5f15df74 100644 --- a/nginx/Dockerfile-QUIC +++ b/nginx/Dockerfile-QUIC @@ -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 \ @@ -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 \