Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Add AnythingLLM Docker configuration
Browse files- Dockerfile +12 -0
- app.py +7 -0
- readme.txt +2 -0
Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM mintplexlabs/anythingllm:latest
|
2 |
+
|
3 |
+
# Set environment variables
|
4 |
+
ENV STORAGE_DIR="/app/server/storage"
|
5 |
+
ENV JWT_SECRET="your_jwt_secret_here"
|
6 |
+
# Add other environment variables as needed
|
7 |
+
|
8 |
+
# Expose the port
|
9 |
+
EXPOSE 7860
|
10 |
+
|
11 |
+
# Set the command to run your app
|
12 |
+
CMD ["node", "server/index.js"]
|
app.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
|
3 |
+
app = FastAPI()
|
4 |
+
|
5 |
+
@app.get("/")
|
6 |
+
def greet_json():
|
7 |
+
return {"Hello": "World!"}
|
readme.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
fastapi
|
2 |
+
uvicorn[standard]
|