Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 07cd053

Browse files
committed
use openresty instead of nginx
Signed-off-by: Sahil Yeole <[email protected]>
1 parent 13a9a36 commit 07cd053

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
2626
RUN wget https://dl.google.com/go/go1.21.1.linux-amd64.tar.gz -O- | tar xz -C /usr/local
2727
ENV 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
3938
RUN mkdir -p /var/cache/nginx-cache \

nginx/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ ulimit -n 1000000
55
current_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"

0 commit comments

Comments
 (0)