Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
3dd2fa5
1
Parent(s):
2131301
Remove build-time secret handling from Dockerfile and add mongo_uri to secrets.toml
Browse files- .streamlit/secrets.toml +1 -0
- Dockerfile +0 -5
.streamlit/secrets.toml
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
mongo_uri = "mongodb+srv://multichem:Xr1q5wZdXPbxdUmJ@testcluster.lgwtp5i.mongodb.net/?retryWrites=true&w=majority&appName=TestCluster"
|
Dockerfile
CHANGED
|
@@ -14,11 +14,6 @@ COPY src/ ./src/
|
|
| 14 |
|
| 15 |
RUN pip3 install -r requirements.txt
|
| 16 |
|
| 17 |
-
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
|
| 18 |
-
RUN --mount=type=secret,id=mongo_uri,mode=0444,required=true \
|
| 19 |
-
git init && \
|
| 20 |
-
git remote add origin $(cat /run/secrets/mongo_uri)
|
| 21 |
-
|
| 22 |
EXPOSE 8501
|
| 23 |
|
| 24 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
|
|
|
| 14 |
|
| 15 |
RUN pip3 install -r requirements.txt
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
EXPOSE 8501
|
| 18 |
|
| 19 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|