Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +18 -12
Dockerfile
CHANGED
|
@@ -1,12 +1,18 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|