-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathingester.dockerfile
More file actions
36 lines (26 loc) · 907 Bytes
/
ingester.dockerfile
File metadata and controls
36 lines (26 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM oven/bun:1 AS base
# Install common utilities
# hadolint ignore=DL3008
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
git \
unzip \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy ingester files
COPY ingesters ./ingesters
# Copy ingester files generated from python
COPY python/src/cairo_coder_tools/ingestion/generated ./python/src/cairo_coder_tools/ingestion/generated
# Install dependencies
WORKDIR /app/ingesters
RUN bun install
# Install Antora globally
RUN bun add -g @antora/cli @antora/site-generator
# Install mdbook
RUN curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.48/mdbook-v0.4.48-x86_64-unknown-linux-gnu.tar.gz | tar xz && \
mv mdbook /usr/local/bin/
# Set working directory to ingesters
WORKDIR /app/ingesters
# Run the ingestion script
CMD ["bun", "run", "generate-embeddings:yes"]