Skip to content

Commit 4cc4bb3

Browse files
committed
Add build for otel module
1 parent 3c10a30 commit 4cc4bb3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

build/Dockerfile.otel

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ RUN apt-get update && apt-get install -y \
1212
zlib1g-dev \
1313
libssl-dev
1414

15-
WORKDIR /usr/src/nginx-otel
15+
WORKDIR /usr/src
16+
1617
RUN wget https://nginx.org/download/nginx-1.27.4.tar.gz && \
1718
tar zxvf nginx-1.27.4.tar.gz && \
1819
cd nginx-1.27.4 && \
1920
./configure --with-compat && \
20-
cd ..
21+
make
2122

22-
RUN git clone https://github.com/nginxinc/nginx-otel.git && \
23-
cd nginx-otel && \
24-
mkdir build && \
25-
cd build && \
23+
RUN git clone https://github.com/nginxinc/nginx-otel.git
24+
25+
WORKDIR /usr/src/nginx-otel
26+
RUN mkdir build && cd build && \
2627
cmake -DNGX_OTEL_NGINX_BUILD_DIR=/usr/src/nginx-1.27.4/objs .. && \
27-
make
28+
make

0 commit comments

Comments
 (0)