Spaces:
Sleeping
Sleeping
Add SQLite installation to Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
# Use the official Python 3.10.9 image
|
2 |
FROM python:3.10.9
|
3 |
|
|
|
|
|
|
|
4 |
# Copy the current directory contents into the container at .
|
5 |
COPY . .
|
6 |
|
@@ -14,4 +17,3 @@ EXPOSE 7860
|
|
14 |
|
15 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
16 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
17 |
-
|
|
|
1 |
# Use the official Python 3.10.9 image
|
2 |
FROM python:3.10.9
|
3 |
|
4 |
+
# Install SQLite
|
5 |
+
RUN apt-get update && apt-get install -y sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
|
6 |
+
|
7 |
# Copy the current directory contents into the container at .
|
8 |
COPY . .
|
9 |
|
|
|
17 |
|
18 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
19 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|