Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
072cb99
1
Parent(s):
4031a4b
Enhance Dockerfile to expose secret for git remote URL and update requirements.txt with additional dependencies including gspread, openpyxl, matplotlib, pymongo, pulp, docker, plotly, and scipy.
Browse files- Dockerfile +5 -0
- requirements.txt +9 -1
Dockerfile
CHANGED
|
@@ -14,6 +14,11 @@ COPY src/ ./src/
|
|
| 14 |
|
| 15 |
RUN pip3 install -r requirements.txt
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
EXPOSE 8501
|
| 18 |
|
| 19 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
|
|
|
| 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
|
requirements.txt
CHANGED
|
@@ -1,3 +1,11 @@
|
|
| 1 |
altair
|
| 2 |
pandas
|
| 3 |
-
streamlit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
altair
|
| 2 |
pandas
|
| 3 |
+
streamlit
|
| 4 |
+
gspread
|
| 5 |
+
openpyxl
|
| 6 |
+
matplotlib
|
| 7 |
+
pymongo
|
| 8 |
+
pulp
|
| 9 |
+
docker
|
| 10 |
+
plotly
|
| 11 |
+
scipy
|