Skip to content

Commit

Permalink
remove rust
Browse files Browse the repository at this point in the history
  • Loading branch information
shreemaan-abhishek committed Mar 28, 2024
1 parent 8b2c715 commit d99c071
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions all-in-one/apisix-dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ RUN set -x \
&& luarocks config variables.OPENSSL_LIBDIR /usr/local/openresty/openssl/lib \
&& luarocks config variables.OPENSSL_INCDIR /usr/local/openresty/openssl/include \
&& git config --global url.https://github.com/.insteadOf git://github.com/ \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sudo sh -s -- -y \
&& source "$HOME/.cargo/env" \
&& export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse \
# next line is for rust cdylib compile on musl
&& export RUSTFLAGS="-C target-feature=-crt-static" \
&& luarocks install https://raw.githubusercontent.com/apache/apisix/master/apisix-master-0.rockspec --tree=/usr/local/apisix/deps PCRE_DIR=/usr/local/openresty/pcre \
&& cp -v /usr/local/apisix/deps/lib/luarocks/rocks-5.1/apisix/${APISIX_VERSION}-0/bin/apisix /usr/bin/ \
&& (if [ "$APISIX_VERSION" = "master" ] || [ "$APISIX_VERSION" \> "2.2" ]; then echo 'use shell ';else bin='#! /usr/local/openresty/luajit/bin/luajit\npackage.path = "/usr/local/apisix/?.lua;" .. package.path'; sed -i "1s@.*@$bin@" /usr/bin/apisix ; fi;) \
Expand Down

0 comments on commit d99c071

Please sign in to comment.