Spaces:
Build error
Build error
no more model_url
Browse files- Dockerfile +4 -1
- defaults/MODEL_URL +0 -1
Dockerfile
CHANGED
@@ -41,6 +41,10 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
|
|
41 |
envsubst < ".env.local.template" > ".env.local" \
|
42 |
&& rm .env.local.template
|
43 |
|
|
|
|
|
|
|
|
|
44 |
|
45 |
|
46 |
RUN --mount=type=cache,target=/app/.npm \
|
@@ -83,7 +87,6 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
|
|
83 |
envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
|
84 |
&& rm entrypoint.sh.template
|
85 |
|
86 |
-
|
87 |
RUN curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \
|
88 |
gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg \
|
89 |
--dearmor
|
|
|
41 |
envsubst < ".env.local.template" > ".env.local" \
|
42 |
&& rm .env.local.template
|
43 |
|
44 |
+
RUN --mount=type=secret,id=MODEL_URL,mode=0444 \
|
45 |
+
MODEL_URL=$(cat /run/secrets/MODEL_URL > /dev/null | grep '^' || cat /defaults/MODEL_URL) && export MODEL_URL \
|
46 |
+
echo "${MODEL_URL}"
|
47 |
+
|
48 |
|
49 |
|
50 |
RUN --mount=type=cache,target=/app/.npm \
|
|
|
87 |
envsubst < "entrypoint.sh.template" > "entrypoint.sh" \
|
88 |
&& rm entrypoint.sh.template
|
89 |
|
|
|
90 |
RUN curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \
|
91 |
gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg \
|
92 |
--dearmor
|
defaults/MODEL_URL
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
https://vietcuna-serving.ngrok.app/generate_stream
|
|
|
|