Update Dockerfile
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -55,7 +55,7 @@ COPY --chown=user . $HOME/app
|
|
| 55 |
|
| 56 |
# Mount the secret and set it as an environment variable
|
| 57 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
| 58 |
-
bash -c 'echo "export OPENAI_API_KEY=$(cat /run/secrets/
|
| 59 |
|
| 60 |
# Make port 7860 available to the world outside this container
|
| 61 |
EXPOSE 7860
|
|
|
|
| 55 |
|
| 56 |
# Mount the secret and set it as an environment variable
|
| 57 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
| 58 |
+
bash -c 'cat /run/secrets/OPENAI_API_KEY > /run/secrets/OPENAI_API_KEY_FILE && echo "export OPENAI_API_KEY=$(cat /run/secrets/OPENAI_API_KEY_FILE)" >> ~/.bashrc'
|
| 59 |
|
| 60 |
# Make port 7860 available to the world outside this container
|
| 61 |
EXPOSE 7860
|