Commit 6fd4b11 1 parent 430b881 commit 6fd4b11 Copy full SHA for 6fd4b11
File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,8 @@ setup_python_venv() {
64
64
# 1. sasl2 using the sasl-xoauth2 plugin
65
65
# 2. a python virtual environment with the msal library
66
66
base_install () {
67
- setup_rust
68
- command -v rustc
69
- command -v cargo
70
67
build_sasl2
71
68
setup_python_venv
72
- rustup self uninstall -y
73
69
}
74
70
75
71
@@ -80,7 +76,7 @@ base_install() {
80
76
# Alpine Linux has a different package management system than Debian-based systems.
81
77
if [ -f /etc/alpine-release ]; then
82
78
# Install necessary libraries
83
- LIBS=" git cmake clang make gcc g++ libc-dev pkgconfig curl-dev jsoncpp-dev cyrus-sasl-dev patch libffi-dev python3-dev"
79
+ LIBS=" git cmake clang make gcc g++ libc-dev pkgconfig curl-dev jsoncpp-dev cyrus-sasl-dev patch libffi-dev python3-dev rust cargo "
84
80
apk add --upgrade curl
85
81
apk add --upgrade --virtual .build-deps ${LIBS}
86
82
96
92
apt-get install -y --no-install-recommends ${LIBS}
97
93
98
94
# Run compilation and installation
95
+ setup_rust
99
96
base_install
97
+ rustup self uninstall -y
100
98
101
99
# Cleanup. This is important to ensure that we don't keep unnecessary files laying around and thus increasing the size of the image.
102
100
apt-get remove --purge -y ${LIBS} python3-venv
You can’t perform that action at this time.
0 commit comments