-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.alpine
25 lines (22 loc) · 1.15 KB
/
Dockerfile.alpine
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
#
# @Note: This is for reference only and is not recommended.
#
FROM node:22.11.0-alpine3.18
WORKDIR /
RUN npm install -g [email protected] && npm -g i eas-cli @expo/ngrok@^4.1.0 sharp-cli@^2.1.0
RUN apk update && apk add --no-cache bash coreutils openjdk11 libstdc++ unzip wget && rm -rf /var/cache/apk/*
RUN corepack enable && corepack prepare yarn@stable --activate && yarn set version stable
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip && unzip commandlinetools-linux-9477386_latest.zip
RUN wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip && unzip platform-tools-latest-linux.zip
RUN mkdir -p /android-sdk/cmdline-tools/latest && mv ./cmdline-tools/* ./android-sdk/cmdline-tools/latest
RUN mkdir -p /android-sdk/platform-tools && mv ./platform-tools/* ./android-sdk/platform-tools
ENV PATH /android-sdk/cmdline-tools/latest/bin:$PATH
ENV PATH /usr/lib/jvm/java-11-openjdk/bin:$PATH
ENV ANDROID_SDK_ROOT /android-sdk
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk
ENV EAS_NO_VCS 1
RUN yes | sdkmanager --licenses
WORKDIR /project
WORKDIR /project/app
VOLUME ["/project/app"]
CMD ["tail", "-f", "/dev/null"]