forked from sim1222-mirror/wrapper
27 lines
642 B
Docker
27 lines
642 B
Docker
FROM ubuntu:latest AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt update && \
|
|
apt install aria2 lsb-release wget software-properties-common gnupg unzip build-essential cmake -y
|
|
|
|
RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
|
|
|
|
RUN aria2c -o android-ndk-r23b-linux.zip https://dl.google.com/android/repository/android-ndk-r23b-linux.zip
|
|
RUN unzip -q -d ~ android-ndk-r23b-linux.zip
|
|
|
|
COPY . /app
|
|
|
|
RUN mkdir /app/build && cd /app/build && cmake .. && make
|
|
|
|
FROM ubuntu:latest
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/rootfs/ /app/rootfs/
|
|
COPY --from=builder /app/wrapper /app/
|
|
ENV args ""
|
|
|
|
CMD ["bash", "-c", "./wrapper ${args}"]
|
|
|
|
EXPOSE 10020 10020
|