martynka commited on
Commit
f802c65
·
verified ·
1 Parent(s): 95ce71e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -6,7 +6,7 @@ RUN apk update && apk add --no-cache \
6
  caddy \
7
  python3 \
8
  py3-pip \
9
- && pip install flask pymongo --break-system-packages
10
 
11
  # Create admin structure
12
  RUN mkdir -p /app/sudo/{templates,static} \
@@ -25,8 +25,8 @@ app = Flask(__name__)
25
  app.secret_key = os.getenv("FLASK_SECRET")
26
 
27
  # MongoDB connection
28
- client = MongoClient(os.getenv("MONGO_URI", "mongodb://localhost:27017/librechat"))
29
- db = client.get_default_database()
30
 
31
  # Authentication decorator
32
  def sudo_required(f):
 
6
  caddy \
7
  python3 \
8
  py3-pip \
9
+ && pip install flask pymongo[srv] --break-system-packages
10
 
11
  # Create admin structure
12
  RUN mkdir -p /app/sudo/{templates,static} \
 
25
  app.secret_key = os.getenv("FLASK_SECRET")
26
 
27
  # MongoDB connection
28
+ client = MongoClient(os.getenv("MONGO_URI"))
29
+ db = client[
30
 
31
  # Authentication decorator
32
  def sudo_required(f):