triflix commited on
Commit
0a0e80c
·
verified ·
1 Parent(s): 3326aef

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -12
Dockerfile CHANGED
@@ -1,12 +1,18 @@
1
- ---
2
- title: Firefox in Browser
3
- emoji: 🌐
4
- colorFrom: gray
5
- colorTo: blue
6
- sdk: docker
7
- app_port: 7860
8
- ---
9
-
10
- # Firefox in Hugging Face Spaces
11
-
12
- Run a remote Firefox browser inside your web browser using VNC.
 
 
 
 
 
 
 
1
+ FROM jlesage/firefox
2
+
3
+ RUN apt-get update && apt-get install -y socat && apt-get clean
4
+
5
+ RUN useradd -m -u 1000 hfuser
6
+
7
+ USER hfuser
8
+
9
+ ENV DISPLAY_WIDTH=1280 \
10
+ DISPLAY_HEIGHT=720 \
11
+ ENABLE_CJK_FONT=1 \
12
+ KEEP_APP_RUNNING=1 \
13
+ TEMP=/tmp \
14
+ TMPDIR=/tmp
15
+
16
+ EXPOSE 7860
17
+
18
+ CMD /startapp.sh & socat TCP-LISTEN:7860,fork TCP:localhost:5800