Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +24 -0
Dockerfile
CHANGED
@@ -23,6 +23,30 @@ RUN mkdir -p static
|
|
23 |
# Copy pokemon background image to static directory
|
24 |
COPY pokemon_huggingface.png static/
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
# Expose the port
|
27 |
EXPOSE 8000
|
28 |
|
|
|
23 |
# Copy pokemon background image to static directory
|
24 |
COPY pokemon_huggingface.png static/
|
25 |
|
26 |
+
# Get secret EXAMPLE and output it to /test at buildtime
|
27 |
+
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
28 |
+
cat /run/secrets/OPENAI_API_KEY > /test
|
29 |
+
|
30 |
+
# Get secret SECRET_EXAMPLE and clone it as repo at buildtime
|
31 |
+
RUN --mount=type=secret,id=OPENAI_AGENT_PASSWORD,mode=0444,required=true \
|
32 |
+
git clone $(cat /run/secrets/OPENAI_AGENT_PASSWORD)
|
33 |
+
|
34 |
+
# Get secret EXAMPLE and output it to /test at buildtime
|
35 |
+
RUN --mount=type=secret,id=GEMINI_AGENT_PASSWORD,mode=0444,required=true \
|
36 |
+
cat /run/secrets/GEMINI_AGENT_PASSWORD > /test
|
37 |
+
|
38 |
+
# Get secret SECRET_EXAMPLE and clone it as repo at buildtime
|
39 |
+
RUN --mount=type=secret,id=MISTRAL_AGENT_PASSWORD,mode=0444,required=true \
|
40 |
+
git clone $(cat /run/secrets/MISTRAL_AGENT_PASSWORD)
|
41 |
+
|
42 |
+
# Get secret GOOGLE_API_KEY and clone it as repo at buildtime
|
43 |
+
RUN --mount=type=secret,id=GOOGLE_API_KEY,mode=0444,required=true \
|
44 |
+
git clone $(cat /run/secrets/GOOGLE_API_KEY)
|
45 |
+
|
46 |
+
# Get secret MISTRAL_API_KEY and clone it as repo at buildtime
|
47 |
+
RUN --mount=type=secret,id=MISTRAL_API_KEY,mode=0444,required=true \
|
48 |
+
git clone $(cat /run/secrets/MISTRAL_API_KEY)
|
49 |
+
|
50 |
# Expose the port
|
51 |
EXPOSE 8000
|
52 |
|