-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathDockerfile
38 lines (30 loc) · 930 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
35
36
37
38
FROM debian:11
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
gettext \
git \
imagemagick \
make \
openjdk-17-jdk \
python3-pip \
python3-setuptools \
unzip \
zip
COPY requirements.txt /src/
RUN pip3 install -r /src/requirements.txt
# Install gradle so that we don't have to do it for each build. Use --help
# because we don't want to run any gradle task for now, the source code is not
# there.
COPY gradle /src/gradle
COPY gradlew /src
RUN /src/gradlew --help
COPY ci/install-android-sdk /src
RUN /src/install-android-sdk
# Must match the value in ci/install-android-sdk
ENV ANDROID_SDK_ROOT=/opt/android-sdk
# Define LANG to avoid javac warnings about UTF-8 characters in the source code
ENV LANG=C.UTF-8
RUN git config --global --add safe.directory /src/pixelwheels
WORKDIR /root
ENTRYPOINT ["/bin/bash"]