-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
28 lines (22 loc) · 858 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM instrumentisto/cargo-ndk
RUN apt-get update -y && \
apt-get install -y pkg-config libssl-dev
WORKDIR /app
# Copy the project files into the container
COPY . /app
# Add additional Rust targets
RUN rustup target add \
aarch64-linux-android \
armv7-linux-androideabi \
x86_64-linux-android \
i686-linux-android
# Set default values for environment variables
ENV CARGO_NDK_ANDROID_PLATFORM=21
ENV CARGO_NDK_ANDROID_TARGET=armeabi-v7a
ENV CARGO_NDK_OUTPUT_PATH=./output
ENV CARGO_NDK_SYSROOT_PATH=/usr/local/android-ndk/sysroot
ENV CARGO_NDK_SYSROOT_TARGET=arm-linux-androideabi
ENV CARGO_NDK_SYSROOT_LIBS_PATH=$CARGO_NDK_SYSROOT_PATH/usr/lib/$CARGO_NDK_SYSROOT_TARGET
# Run the cargo-ndk command
CMD ["cargo", "ndk", "-o", "./jniLibs", "build"]
#docker run --rm -v C:\Users\UCHE\Desktop\docker:/app bukki