forked from sim1222-mirror/wrapper
fix: Dockerfile make buildable
This commit is contained in:
parent
4459548fb3
commit
ab287a2b69
22
Dockerfile
22
Dockerfile
@ -1,10 +1,26 @@
|
||||
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 /app
|
||||
COPY . /app
|
||||
COPY --from=builder /app/rootfs/ /app/rootfs/
|
||||
COPY --from=builder /app/wrapper /app/
|
||||
ENV args ""
|
||||
|
||||
CMD ["bash", "-c", "./wrapper ${args}"]
|
||||
|
||||
EXPOSE 10020 20020
|
||||
EXPOSE 10020 10020
|
||||
|
10
compose.yaml
Normal file
10
compose.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
services:
|
||||
wrapper:
|
||||
image: sim1222/wrapper:latest
|
||||
build: .
|
||||
volumes:
|
||||
- ./rootfs/data:/app/rootfs/data
|
||||
ports:
|
||||
- 10020:10020
|
||||
environment:
|
||||
- args="-H 0.0.0.0"
|
Loading…
x
Reference in New Issue
Block a user