This repository was archived by the owner on Mar 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,13 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
2626RUN wget https://dl.google.com/go/go1.21.1.linux-amd64.tar.gz -O- | tar xz -C /usr/local
2727ENV PATH=$PATH:/usr/local/go/bin
2828
29- # Install Nginx with echo module
30- RUN wget http://nginx.org/download/nginx-1.26.0.tar.gz && \
31- tar -xzvf nginx-1.26.0.tar.gz && \
32- git clone https://github.com/openresty/echo-nginx-module.git && \
33- cd nginx-1.26.0 && \
34- CFLAGS="-Wno-implicit-fallthrough" ./configure --prefix=/opt/nginx --add-module=../echo-nginx-module && \
35- make -j2 && \
36- make install
29+ # Install Openresty
30+ RUN apt-get update && \
31+ apt-get -y install --no-install-recommends wget gnupg ca-certificates lsb-release && \
32+ wget -O - https://openresty.org/package/pubkey.gpg | gpg --dearmor -o /usr/share/keyrings/openresty-archive-keyring.gpg && \
33+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/openresty-archive-keyring.gpg] http://openresty.org/package/$(dpkg --print-architecture)/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/openresty.list && \
34+ apt-get update && \
35+ apt-get -y install --no-install-recommends openresty
3736
3837# Nginx configurations
3938RUN mkdir -p /var/cache/nginx-cache \
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ ulimit -n 1000000
55current_dir=$( pwd)
66
77# Start nginx using the configuration file from the current directory
8- nginx -c " $current_dir /nginx/nginx.conf"
8+ openresty -c " $current_dir /nginx/nginx.conf"
You can’t perform that action at this time.
0 commit comments