Spaces:
Runtime error
Runtime error
TahaRasouli
commited on
Commit
•
10e1ff9
1
Parent(s):
3c736d3
Update Dockerfile
Browse files- Dockerfile +0 -17
Dockerfile
CHANGED
@@ -7,23 +7,6 @@ RUN apt-get update \
|
|
7 |
# Install uvicorn
|
8 |
RUN pip install uvicorn
|
9 |
|
10 |
-
# Use an official PostgreSQL image
|
11 |
-
FROM postgres:16
|
12 |
-
|
13 |
-
# Set environment variables
|
14 |
-
ENV POSTGRES_DB ai
|
15 |
-
ENV POSTGRES_USER ai
|
16 |
-
ENV POSTGRES_PASSWORD ai
|
17 |
-
|
18 |
-
# Mount a volume for storing data
|
19 |
-
VOLUME pgvolume
|
20 |
-
|
21 |
-
# Expose port 5532
|
22 |
-
EXPOSE 5532
|
23 |
-
|
24 |
-
# Run the container in detached mode
|
25 |
-
CMD ["docker", "run", "-d", "--name", "pgvector", "phidata/pgvector:16"]
|
26 |
-
|
27 |
# Install dependencies
|
28 |
COPY . /app
|
29 |
ENTRYPOINT ["uvicorn", "main:app"]
|
|
|
7 |
# Install uvicorn
|
8 |
RUN pip install uvicorn
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
# Install dependencies
|
11 |
COPY . /app
|
12 |
ENTRYPOINT ["uvicorn", "main:app"]
|