Spaces:
Running
Running
Update Dockerfile
Browse files- 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"
|
29 |
-
db = client
|
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):
|