start repo for being able to build an app
This commit is contained in:
commit
3e85cb0adc
3 changed files with 31 additions and 0 deletions
1
.bashrc
Normal file
1
.bashrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
RUN apk update
|
||||||
|
RUN apk add coreutils bash shadow make zip
|
||||||
|
RUN apk add openjdk11-jdk
|
||||||
|
ENV ANDROID_SDK_ROOT="/opt/android"
|
||||||
|
ENV BUILD_TOOLS_LATEST="$ANDROID_SDK_ROOT/cmdline-tools/latest"
|
||||||
|
RUN BUILD_TOOLS="$(realpath -m "$BUILD_TOOLS_LATEST/..")";\
|
||||||
|
mkdir -p "$BUILD_TOOLS";\
|
||||||
|
cd "$BUILD_TOOLS";\
|
||||||
|
pwd;\
|
||||||
|
wget -O cmdline-tools.zip https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip;\
|
||||||
|
unzip cmdline-tools.zip;\
|
||||||
|
ls ;\
|
||||||
|
ls cmdline-tools;\
|
||||||
|
rm cmdline-tools.zip;\
|
||||||
|
mv -v cmdline-tools "$BUILD_TOOLS_LATEST" || true
|
||||||
|
ENV PATH="$PATH:$BUILD_TOOLS_LATEST/bin"
|
||||||
|
ENV LIBRARY_PATH="$LIBRARY_PATH:$BUILD_TOOLS_LATEST/lib"
|
||||||
|
|
||||||
|
RUN yes | sdkmanager --install "build-tools;33.0.2"
|
||||||
|
RUN yes | sdkmanager --install "plattforms:33"
|
||||||
|
RUN useradd -m -s /bin/bash app
|
||||||
7
docker-compose.yml
Normal file
7
docker-compose.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
app-compiler:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
stop_grace_period: 1s
|
||||||
|
entrypoint: sh -c 'sleep infinity'
|
||||||
Loading…
Add table
Reference in a new issue