Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Added monogodb tools to Dockefile installs
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -25,6 +25,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 25 |
liblzma5 \
|
| 26 |
libldap-2.5-0 \
|
| 27 |
libldap-common \
|
|
|
|
| 28 |
&& rm -rf /var/lib/apt/lists/*
|
| 29 |
|
| 30 |
ARG MONGO_VERSION=7.0.24
|
|
@@ -55,4 +56,4 @@ python -c \"from pymongo import MongoClient; c = MongoClient('mongodb://127.0.0.
|
|
| 55 |
python -c \"from pymongo import MongoClient; c = MongoClient('mongodb://127.0.0.1:27017/', serverSelectionTimeoutMS=5000); db = c['huggingFaceData']; db.create_collection('rooms') if 'rooms' not in db.list_collection_names() else None; db.create_collection('counters') if 'counters' not in db.list_collection_names() else None; db.counters.update_one({'_id':'room_id'}, {'\\$setOnInsert': {'seq': 0}}, upsert=True); db.rooms.create_index('user_id'); print('Mongo init complete')\" && \
|
| 56 |
exec \"$@\"", "--"]
|
| 57 |
|
| 58 |
-
CMD ["gunicorn", "-k", "geventwebsocket.gunicorn.workers.GeventWebSocketWorker", "-w", "1", "--bind", "0.0.0.0:7860", "chat_application.main:app"]
|
|
|
|
| 25 |
liblzma5 \
|
| 26 |
libldap-2.5-0 \
|
| 27 |
libldap-common \
|
| 28 |
+
mongodb-database-tools \
|
| 29 |
&& rm -rf /var/lib/apt/lists/*
|
| 30 |
|
| 31 |
ARG MONGO_VERSION=7.0.24
|
|
|
|
| 56 |
python -c \"from pymongo import MongoClient; c = MongoClient('mongodb://127.0.0.1:27017/', serverSelectionTimeoutMS=5000); db = c['huggingFaceData']; db.create_collection('rooms') if 'rooms' not in db.list_collection_names() else None; db.create_collection('counters') if 'counters' not in db.list_collection_names() else None; db.counters.update_one({'_id':'room_id'}, {'\\$setOnInsert': {'seq': 0}}, upsert=True); db.rooms.create_index('user_id'); print('Mongo init complete')\" && \
|
| 57 |
exec \"$@\"", "--"]
|
| 58 |
|
| 59 |
+
CMD ["gunicorn", "-k", "geventwebsocket.gunicorn.workers.GeventWebSocketWorker", "-w", "1", "--bind", "0.0.0.0:7860", "chat_application.main:app"]
|