Spaces:
Running
Running
Commit
·
d5cc289
1
Parent(s):
b08d8ce
Save changes before cleaning history
Browse files- .gitignore +5 -1
- Dockerfile +18 -0
- environment.yaml +1 -0
.gitignore
CHANGED
@@ -46,4 +46,8 @@ temp_downloads/
|
|
46 |
|
47 |
# OS
|
48 |
.DS_Store
|
49 |
-
Thumbs.db
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
# OS
|
48 |
.DS_Store
|
49 |
+
Thumbs.db
|
50 |
+
|
51 |
+
# environment
|
52 |
+
.env
|
53 |
+
chroma/
|
Dockerfile
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.12.9-slim
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
COPY requirements.txt /app/
|
6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
+
|
8 |
+
COPY . /app/
|
9 |
+
|
10 |
+
# Expose the port the app will run on
|
11 |
+
EXPOSE 7860
|
12 |
+
|
13 |
+
# Create and use a non-root user for security
|
14 |
+
RUN useradd -m -u 1000 user
|
15 |
+
USER user
|
16 |
+
|
17 |
+
# Command to run the application
|
18 |
+
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
environment.yaml
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
build_type: docker
|