File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- FROM openresty/openresty: alpine
1+ FROM alpine:3. 21 .2 as libjwt-builder
22
33WORKDIR /home/app
44RUN apk add --no-cache git cmake make gcc g++ jansson-dev openssl-dev
5+ RUN git clone --depth 1 --branch v3.2.0 https://github.com/benmcollins/libjwt.git && \
6+ mkdir libjwt/build && \
7+ cd libjwt/build && cmake .. && make && make install
58
9+ FROM openresty/openresty:1.27.1.1 -1-alpine
610
711COPY ./nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
812COPY ./lib/resty/libjwt /usr/local/openresty/lualib/resty/libjwt
913
10- RUN git clone https://github.com/benmcollins/libjwt.git
11- RUN mkdir libjwt/build
12- RUN cd libjwt/build && cmake ..
13- RUN cd libjwt/build && make && make install
14-
15-
14+ RUN apk add --no-cache jansson
15+ COPY --from=libjwt-builder /usr/local/lib/libjwt.so /usr/local/lib/libjwt.so
1616EXPOSE 8888
1717CMD ["openresty" , "-g" , "daemon off;" ]
You can’t perform that action at this time.
0 commit comments