Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +13 -14
Dockerfile
CHANGED
@@ -23,29 +23,28 @@ RUN mkdir -p static
|
|
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
|
31 |
-
RUN --mount=type=secret,id=
|
32 |
-
|
|
|
|
|
|
|
|
|
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 |
-
|
49 |
|
50 |
# Expose the port
|
51 |
EXPOSE 8000
|
|
|
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_AGENT_PASSWORD,mode=0444,required=true \
|
28 |
+
cat /run/secrets/OPENAI_AGENT_PASSWORD > /test
|
29 |
+
|
30 |
# Get secret EXAMPLE and output it to /test at buildtime
|
31 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
32 |
cat /run/secrets/OPENAI_API_KEY > /test
|
33 |
|
34 |
+
# Get secret EXAMPLE and output it to /test at buildtime
|
35 |
+
RUN --mount=type=secret,id=MISTRAL_AGENT_PASSWORD,mode=0444,required=true \
|
36 |
+
cat /run/secrets/MISTRAL_AGENT_PASSWORD > /test
|
37 |
+
|
38 |
+
# Get secret EXAMPLE and output it to /test at buildtime
|
39 |
+
RUN --mount=type=secret,id=GOOGLE_API_KEY,mode=0444,required=true \
|
40 |
+
cat /run/secrets/GOOGLE_API_KEY > /test
|
41 |
|
42 |
# Get secret EXAMPLE and output it to /test at buildtime
|
43 |
RUN --mount=type=secret,id=GEMINI_AGENT_PASSWORD,mode=0444,required=true \
|
44 |
cat /run/secrets/GEMINI_AGENT_PASSWORD > /test
|
45 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
RUN --mount=type=secret,id=MISTRAL_API_KEY,mode=0444,required=true \
|
47 |
+
cat /run/secrets/MISTRAL_API_KEY > /test
|
48 |
|
49 |
# Expose the port
|
50 |
EXPOSE 8000
|