Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -47,7 +47,7 @@ RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
|
47 |
|
48 |
# Get secret SECRET_EXAMPLE and clone it as repo at buildtime
|
49 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
50 |
-
git clone
|
51 |
|
52 |
# Activate the virtual environment and run uvicorn
|
53 |
CMD [".venv/bin/python", "-m", "uvicorn", "private_gpt.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
47 |
|
48 |
# Get secret SECRET_EXAMPLE and clone it as repo at buildtime
|
49 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
50 |
+
git clone /run/secrets/OPENAI_API_KEY /home/worker/my_repo
|
51 |
|
52 |
# Activate the virtual environment and run uvicorn
|
53 |
CMD [".venv/bin/python", "-m", "uvicorn", "private_gpt.main:app", "--host", "0.0.0.0", "--port", "7860"]
|