-
-
Notifications
You must be signed in to change notification settings - Fork 447
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 801 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 801 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
#------------------------------------------------
# Builder: install Python dependencies
#------------------------------------------------
ARG BASE_IMAGE=ghcr.io/lncrawl/lncrawl-base:latest
FROM ${BASE_IMAGE} AS builder
RUN apt-get update -yq && \
apt-get install -yq --no-install-recommends git && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-dev --no-install-project
#------------------------------------------------
# Runtime
#------------------------------------------------
FROM ${BASE_IMAGE}
WORKDIR /app
COPY --from=builder /app/.venv /app/.venv
COPY lncrawl ./lncrawl
COPY sources ./sources
ENV LNCRAWL_DATA_PATH=/data
ENTRYPOINT ["/app/.venv/bin/python", "-m", "lncrawl"]