Spaces:
Sleeping
Sleeping
Seth McKnight
commited on
Commit
·
241bf1b
1
Parent(s):
52852e0
Add scripts directory and update permissions (#85)
Browse filesAdded scripts directory to the Docker image and made init script executable.
- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -17,10 +17,14 @@ COPY static /app/static
|
|
| 17 |
COPY src /app/src
|
| 18 |
# Copy persisted data (e.g., chroma DB) so the container can access it if present
|
| 19 |
COPY data /app/data
|
|
|
|
|
|
|
|
|
|
| 20 |
COPY run.sh /app/run.sh
|
| 21 |
|
| 22 |
-
# Make run.sh executable
|
| 23 |
RUN chmod +x /app/run.sh
|
|
|
|
| 24 |
|
| 25 |
# Expose port 10000
|
| 26 |
EXPOSE 10000
|
|
|
|
| 17 |
COPY src /app/src
|
| 18 |
# Copy persisted data (e.g., chroma DB) so the container can access it if present
|
| 19 |
COPY data /app/data
|
| 20 |
+
# COPY the scripts directory so runtime init scripts (e.g. init_pgvector.py) exist
|
| 21 |
+
COPY scripts /app/scripts
|
| 22 |
+
|
| 23 |
COPY run.sh /app/run.sh
|
| 24 |
|
| 25 |
+
# Make run.sh (and optionally the init script) executable
|
| 26 |
RUN chmod +x /app/run.sh
|
| 27 |
+
RUN chmod +x /app/scripts/init_pgvector.py || true
|
| 28 |
|
| 29 |
# Expose port 10000
|
| 30 |
EXPOSE 10000
|