Enviar arquivos para "/"
This commit is contained in:
43
Dockerfile
Normal file
43
Dockerfile
Normal file
@@ -0,0 +1,43 @@
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Dependências
|
||||
RUN apt-get update && apt-get install -y \
|
||||
qemu-system-x86 \
|
||||
qemu-kvm \
|
||||
qemu-utils \
|
||||
libvirt-clients \
|
||||
xvfb \
|
||||
x11vnc \
|
||||
openbox \
|
||||
novnc \
|
||||
websockify \
|
||||
wget \
|
||||
curl \
|
||||
unzip \
|
||||
supervisor \
|
||||
net-tools \
|
||||
socat \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Baixa Android-x86 (Android 9 com Google Play — melhor compatibilidade)
|
||||
RUN mkdir -p /android && \
|
||||
wget -q "https://sourceforge.net/projects/android-x86/files/Release%209.0/android-x86_64-9.0-r2.iso/download" \
|
||||
-O /android/android-x86.iso
|
||||
|
||||
# Cria disco virtual de 8GB para o Android
|
||||
RUN qemu-img create -f qcow2 /android/android.img 8G
|
||||
|
||||
# Scripts
|
||||
COPY install.sh /install.sh
|
||||
COPY start.sh /start.sh
|
||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
RUN chmod +x /install.sh /start.sh
|
||||
|
||||
# Instala o Android no disco virtual (roda uma vez no build)
|
||||
RUN /install.sh
|
||||
|
||||
EXPOSE 6080 5555
|
||||
|
||||
CMD ["/start.sh"]
|
||||
Reference in New Issue
Block a user