rishikumar20202023 commited on
Commit
67b9adf
·
verified ·
1 Parent(s): 558edbf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- CMD ["python", "-m", "g4f" ,"--port" ,"7860", "--debug", "--g4f-api-key" , "${key}"]
 
 
 
 
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}"]