Spaces:
Building
Building
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -1,9 +1,6 @@
|
|
1 |
FROM selenium/node-chrome
|
2 |
|
3 |
|
4 |
-
RUN --mount=type=secret,id=key,mode=0444,required=true \
|
5 |
-
echo "export key=$(cat /run/secrets/key)" >> /etc/environment
|
6 |
-
|
7 |
|
8 |
ARG G4F_VERSION
|
9 |
ENV G4F_VERSION $G4F_VERSION
|
@@ -18,6 +15,13 @@ USER root
|
|
18 |
# ENV PATH="/home/user/.local/bin:$PATH"
|
19 |
# # ^ when run as `user`, pip installs executables there
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
RUN if [ "$G4F_VERSION" = "" ] ; then \
|
22 |
apt-get -qqy update && \
|
23 |
apt-get -qqy install git \
|
|
|
1 |
FROM selenium/node-chrome
|
2 |
|
3 |
|
|
|
|
|
|
|
4 |
|
5 |
ARG G4F_VERSION
|
6 |
ENV G4F_VERSION $G4F_VERSION
|
|
|
15 |
# ENV PATH="/home/user/.local/bin:$PATH"
|
16 |
# # ^ when run as `user`, pip installs executables there
|
17 |
|
18 |
+
|
19 |
+
|
20 |
+
RUN --mount=type=secret,id=key,mode=0444,required=true \
|
21 |
+
echo "export key=$(cat /run/secrets/key)" >> /etc/environment
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
RUN if [ "$G4F_VERSION" = "" ] ; then \
|
26 |
apt-get -qqy update && \
|
27 |
apt-get -qqy install git \
|