bethanie05 commited on
Commit
93faa9e
·
verified ·
1 Parent(s): 135814f

Fix syntax error

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -52,7 +52,7 @@ mongod --bind_ip 127.0.0.1 \
52
  --fork && \
53
  sleep 3 && \
54
  python -c \"from pymongo import MongoClient; c = MongoClient('mongodb://127.0.0.1:27017/', serverSelectionTimeoutMS=5000); print(c.admin.command('ping'))\" && \
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"]
 
52
  --fork && \
53
  sleep 3 && \
54
  python -c \"from pymongo import MongoClient; c = MongoClient('mongodb://127.0.0.1:27017/', serverSelectionTimeoutMS=5000); print(c.admin.command('ping'))\" && \
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"]