Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
|
@@ -2,16 +2,16 @@ FROM budtmo/docker-android:emulator_9.0
|
|
| 2 |
|
| 3 |
USER root
|
| 4 |
|
| 5 |
-
# 1.
|
| 6 |
ENV DEVICE_RESOLUTION="720x1280"
|
| 7 |
ENV WEB_HUD=true
|
| 8 |
ENV APPIUM=false
|
| 9 |
-
ENV
|
| 10 |
|
| 11 |
-
# 2. Hugging Face
|
| 12 |
EXPOSE 7860
|
| 13 |
|
| 14 |
-
# 3. The '
|
| 15 |
-
#
|
| 16 |
-
#
|
| 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"]
|