scargamingcenter commited on
Commit
fd0c8be
·
verified ·
1 Parent(s): 4e06e0e

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ wget curl unzip openjdk-17-jdk-headless \
7
+ novnc websockify \
8
+ xvfb xfce4 xfce4-terminal \
9
+ wget python3 python3-pip \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ RUN mkdir -p /opt/android-sdk/cmdline-tools && \
13
+ cd /opt/android-sdk/cmdline-tools && \
14
+ wget -q https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip -O tools.zip && \
15
+ unzip tools.zip && \
16
+ mv cmdline-tools latest
17
+
18
+ ENV ANDROID_HOME=/opt/android-sdk
19
+ ENV PATH="${PATH}:/opt/android-sdk/cmdline-tools/latest/bin:/opt/android-sdk/platform-tools"
20
+
21
+ RUN yes | sdkmanager --licenses && \
22
+ sdkmanager "platform-tools" "platforms;android-30" "system-images;android-30;google_apis;x86_64" "emulator"
23
+
24
+ RUN echo "no" | avdmanager create avd -n test_device -k "system-images;android-30;google_apis;x86_64" --device "pixel_4"
25
+
26
+ COPY entrypoint.sh /entrypoint.sh
27
+ RUN chmod +x /entrypoint.sh
28
+
29
+ EXPOSE 6080
30
+
31
+ ENTRYPOINT ["/entrypoint.sh"]