File size: 571 Bytes
a6ee074
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM deadolus/android-studio:latest

# Install required tools for VNC access and dummy display
RUN apt-get update && apt-get install -y \
    x11vnc \
    xvfb \
    fluxbox \
    net-tools \
    && apt-get clean

# Set environment variables
ENV DISPLAY=:0
ENV RESOLUTION=1920x1080x24
ENV VNC_PORT=7860
ENV VNC_PASSWORD=android

# Expose VNC port
EXPOSE 7860

# Create directory for studio data
RUN mkdir -p /studio-data && chown -R root:root /studio-data

# Entry point script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]