Spaces:
Building
Building
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -67,4 +67,7 @@ RUN pip install --break-system-packages -r requirements.txt
|
|
67 |
|
68 |
# COPY --chown=user . /app
|
69 |
|
70 |
-
|
|
|
|
|
|
|
|
67 |
|
68 |
# COPY --chown=user . /app
|
69 |
|
70 |
+
ENV key=""
|
71 |
+
CMD ["sh", "-c", "export key=$(cat /run/secrets/key) && echo 'Key is: $key' && python -m g4f --port 7860 --debug --g4f-api-key $key"]
|
72 |
+
|
73 |
+
# CMD ["python", "-m", "g4f" ,"--port" ,"7860", "--debug", "--g4f-api-key" , "${key}"]
|