-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 871 Bytes
/
Dockerfile
File metadata and controls
29 lines (24 loc) · 871 Bytes
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
FROM androidsdk/android-30:latest
# Install tools and JDK
RUN apt-get update \
&& apt-get install -y \
libgl1-mesa-dev \
wget \
unzip \
openjdk-8-jdk \
ffmpeg\
python3-pip\
git
# Install conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /anaconda.sh \
&& bash /anaconda.sh -b -p /opt/conda \
&& rm /anaconda.sh
ENV PATH=$PATH:/opt/conda/bin
RUN conda create -n ReproBot python==3.7
# download the system images
# RUN for version in 19 21 23 24 26 28 29 30; do yes | sdkmanager "system-images;android-${version};google_apis;x86"; done
# Use conda to build python environment
ADD requirements.txt requirements.txt
RUN conda run --no-capture-output -n ReproBot pip install -r requirements.txt
RUN conda run --no-capture-output -n ReproBot python -m spacy download en_core_web_lg
CMD echo "Environment is ready"