Spaces:
Building
Building
Update Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
CHANGED
@@ -73,6 +73,19 @@ RUN --mount=target=/root/packages.txt,source=packages.txt \
|
|
73 |
RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
|
74 |
bash /root/on_startup.sh
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
USER user
|
77 |
|
78 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
|
|
73 |
RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
|
74 |
bash /root/on_startup.sh
|
75 |
|
76 |
+
RUN apt-get update && apt-get install -y \
|
77 |
+
python3 \
|
78 |
+
python3-pip \
|
79 |
+
&& rm -rf /var/lib/apt/lists/*
|
80 |
+
|
81 |
+
RUN pip3 install udocker
|
82 |
+
|
83 |
+
RUN udocker --allow-root pull jlesage/firefox
|
84 |
+
RUN udocker --allow-root create --name=firefox jlesage/firefox
|
85 |
+
CMD udocker --allow-root run -v /content/tools/firefox:/config -p 5800:5800 firefox && \
|
86 |
+
./cloudflared tunnel --url http://localhost:5800
|
87 |
+
|
88 |
+
|
89 |
USER user
|
90 |
|
91 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|