aiioe commited on
Commit
e9fffac
·
verified ·
1 Parent(s): 22390c8

Delete Dockerfile_honduras

Browse files
Files changed (1) hide show
  1. Dockerfile_honduras +0 -57
Dockerfile_honduras DELETED
@@ -1,57 +0,0 @@
1
- # Stage 1: Build SQLite
2
- FROM debian:bookworm-slim AS builder
3
-
4
- WORKDIR /build
5
-
6
- # Install build dependencies
7
- RUN apt-get update && apt-get install -y --no-install-recommends \
8
- build-essential \
9
- wget \
10
- ca-certificates \
11
- make \
12
- && rm -rf /var/lib/apt/lists/*
13
-
14
- # Download and install SQLite
15
- RUN wget https://www.sqlite.org/2023/sqlite-autoconf-3410200.tar.gz && \
16
- tar xzf sqlite-autoconf-3410200.tar.gz && \
17
- cd sqlite-autoconf-3410200 && \
18
- ./configure --prefix=/usr/local && \
19
- make && make install
20
-
21
- # Stage 2: Build the final image
22
- FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim
23
-
24
- # Set the working directory inside the container
25
- WORKDIR /app/_backend
26
-
27
- # Copy SQLite from the builder stage
28
- COPY --from=builder /usr/local /usr/local
29
-
30
- # Update library path
31
- ENV LD_LIBRARY_PATH="/usr/local/lib"
32
-
33
- # Install pysqlite3-binary
34
- RUN pip install --no-cache-dir pysqlite3-binary
35
-
36
- # Copy the requirements file
37
- COPY _backend/requirements.txt .
38
-
39
- # Install dependencies
40
- RUN :uv pip install --system -r requirements.txt
41
-
42
- # Copy the backend files
43
- COPY _backend/ .
44
- COPY .prod.env .env
45
-
46
-
47
- # Expose port 8000 (matching docker-compose)
48
- EXPOSE 8000
49
-
50
- # deleting the vector store
51
- RUN rm -rf honduras_data/chroma_db
52
-
53
- # Rebuild the vector store
54
- RUN python reset_vdb.py
55
-
56
- # Final command to run the application
57
- CMD ["python", "api.py"]