Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +29 -13
Dockerfile
CHANGED
|
@@ -2,22 +2,38 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
# Instala herramientas necesarias
|
| 4 |
RUN apt-get update && \
|
| 5 |
-
apt-get install -y curl && \
|
| 6 |
apt-get clean && \
|
| 7 |
rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
-
#
|
| 10 |
WORKDIR /app
|
| 11 |
|
| 12 |
-
# Descarga
|
| 13 |
-
RUN \
|
| 14 |
-
curl -L -o android-ndk-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
#
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
#
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
# Instala herramientas necesarias
|
| 4 |
RUN apt-get update && \
|
| 5 |
+
apt-get install -y curl unzip && \
|
| 6 |
apt-get clean && \
|
| 7 |
rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
+
# Directorio de trabajo para SDK y herramientas
|
| 10 |
WORKDIR /app
|
| 11 |
|
| 12 |
+
# Descarga Android NDKs
|
| 13 |
+
RUN curl -L -o android-ndk-r29-beta2-linux.zip https://dl.google.com/android/repository/android-ndk-r29-beta2-linux.zip && \
|
| 14 |
+
curl -L -o android-ndk-r28b-linux.zip https://dl.google.com/android/repository/android-ndk-r28b-linux.zip
|
| 15 |
+
|
| 16 |
+
# Android Studio (煤ltima versi贸n estable conocida al momento)
|
| 17 |
+
RUN curl -L -o android-studio-2024.3.2.15-linux.tar.gz https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2024.3.2.15/android-studio-2024.3.2.15-linux.tar.gz
|
| 18 |
+
|
| 19 |
+
# Componentes Android SDK
|
| 20 |
+
RUN curl -L -o commandlinetools-linux.zip https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip && \
|
| 21 |
+
curl -L -o platform-tools.zip https://dl.google.com/android/repository/platform-tools_r35.0.0-linux.zip && \
|
| 22 |
+
curl -L -o build-tools.zip https://dl.google.com/android/repository/build-tools_r34.0.0-linux.zip && \
|
| 23 |
+
curl -L -o platform-34.zip https://dl.google.com/android/repository/platform-34_r01.zip && \
|
| 24 |
+
curl -L -o sources-34.zip https://dl.google.com/android/repository/sources-34_r01.zip && \
|
| 25 |
+
curl -L -o emulator.zip https://dl.google.com/android/repository/emulator-linux_x64-10542434.zip && \
|
| 26 |
+
curl -L -o system-image.zip https://dl.google.com/android/repository/sys-img/google_apis/x86_64-34_r09.zip && \
|
| 27 |
+
curl -L -o extras-google-m2.zip https://dl.google.com/android/repository/extras/google/m2repository_r58.zip && \
|
| 28 |
+
curl -L -o extras-android-m2.zip https://dl.google.com/android/repository/extras/android/m2repository_r47.zip
|
| 29 |
|
| 30 |
+
# Descarga de ISOs (Ubuntu, Fedora, Arch)
|
| 31 |
+
WORKDIR /iso
|
| 32 |
+
|
| 33 |
+
RUN curl -L -o ubuntu-25.04.iso https://releases.ubuntu.com/25.04/ubuntu-25.04-desktop-amd64.iso && \
|
| 34 |
+
curl -L -o fedora-42.iso https://download.fedoraproject.org/pub/fedora/linux/releases/42/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-42-1.10.iso && \
|
| 35 |
+
curl -L -o archlinux-2025.iso https://geo.mirror.pkgbuild.com/iso/2025.06.01/archlinux-2025.06.01-x86_64.iso
|
| 36 |
+
|
| 37 |
+
# Servidor HTTP simple en el puerto 7860
|
| 38 |
+
EXPOSE 7860
|
| 39 |
+
CMD ["python3", "-m", "http.server", "7860"]
|