-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (27 loc) · 964 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
29
30
31
32
33
34
FROM ubuntu:20.04
ENV ANDROID_SDK_URL="https://dl.google.com/android/repository/platform-tools-latest-linux.zip"
ENV ANDROID_HOME="/usr/local/android-sdk"
ENV PATH="${ANDROID_HOME}/platform-tools:${PATH}"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
unzip \
wget \
curl \
jq \
openjdk-8-jdk \
python3 \
python3-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p ${ANDROID_HOME} && \
wget -q ${ANDROID_SDK_URL} -O /tmp/platform-tools.zip && \
unzip /tmp/platform-tools.zip -d ${ANDROID_HOME} && \
rm /tmp/platform-tools.zip
RUN wget -q https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-stable-linux-amd64.zip -O /tmp/ngrok.zip && \
unzip /tmp/ngrok.zip -d /usr/local/bin && \
rm /tmp/ngrok.zip
COPY requirements.txt /app/requirements.txt
RUN pip3 install -r /app/requirements.txt
COPY . /app
WORKDIR /app
CMD ["bash", "-c", "./start_ngrok.sh & python3 ./app.py"]