Commit
·
096b2a7
1
Parent(s):
2a68e5a
Ready for deployment
Browse files- .dockerignore +6 -0
- dockerfile +15 -0
- render.yaml +9 -0
- requirements.txt +0 -0
.dockerignore
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
__pycache__
|
2 |
+
*.pyc
|
3 |
+
*.pyo
|
4 |
+
*.pyd
|
5 |
+
.env
|
6 |
+
.git
|
dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
COPY . .
|
6 |
+
|
7 |
+
RUN apt-get update && \
|
8 |
+
apt-get install -y --no-install-recommends gcc python3-dev && \
|
9 |
+
rm- rf /var/lib/apt/lists/*
|
10 |
+
|
11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
+
|
13 |
+
EXPOSE 8000
|
14 |
+
|
15 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "app.main:app"]
|
render.yaml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
services:
|
2 |
+
- type: web
|
3 |
+
name: sqlite-chat-assistant
|
4 |
+
runtime: docker
|
5 |
+
env: python
|
6 |
+
buildCommand: "./build.sh"
|
7 |
+
startCommand: "gunicorn app.main:app --workers 4"
|
8 |
+
|
9 |
+
|
requirements.txt
CHANGED
Binary files a/requirements.txt and b/requirements.txt differ
|
|