Sachin5112 commited on
Commit
9a7444a
·
verified ·
1 Parent(s): 366b6b0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -2,16 +2,16 @@ FROM budtmo/docker-android:emulator_9.0
2
 
3
  USER root
4
 
5
- # 1. Set environment variables to optimize for cloud
6
  ENV DEVICE_RESOLUTION="720x1280"
7
  ENV WEB_HUD=true
8
  ENV APPIUM=false
9
- ENV PORT=7860
10
 
11
- # 2. Hugging Face specific port
12
  EXPOSE 7860
13
 
14
- # 3. The 'Master Command'
15
- # -n tells supervisor to stay in the foreground (prevents Exit 0)
16
- # -c points to the configuration that launches the phone and web UI
17
- CMD ["supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
 
2
 
3
  USER root
4
 
5
+ # 1. Force everything to stay in the foreground
6
  ENV DEVICE_RESOLUTION="720x1280"
7
  ENV WEB_HUD=true
8
  ENV APPIUM=false
9
+ ENV WEB_VNC=true
10
 
11
+ # 2. Map the port Hugging Face expects
12
  EXPOSE 7860
13
 
14
+ # 3. The 'Never-Sleep' Command
15
+ # We use 'nodaemon' so Hugging Face sees the process as active
16
+ # and we point to the absolute path for the config file.
17
+ CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]