Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (51 loc) · 1.93 KB
/
Copy pathDockerfile
File metadata and controls
60 lines (51 loc) · 1.93 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM python:3.12-slim@sha256:57cd7c3a7a273101a6485ba99423ee568157882804b1124b4dd04266317710de
ARG DANDER_VERSION=development
ARG DANDER_BUILD_REVISION=unknown
ARG DANDER_BUILD_CREATED=1970-01-01T00:00:00Z
LABEL org.opencontainers.image.title="Dander" \
org.opencontainers.image.description="Self-hosted data platform runtime" \
org.opencontainers.image.source="https://github.com/harrisonoconnorhover/dander" \
org.opencontainers.image.documentation="https://github.com/harrisonoconnorhover/dander/blob/main/docs/getting-started.md" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.version="${DANDER_VERSION}" \
org.opencontainers.image.revision="${DANDER_BUILD_REVISION}" \
org.opencontainers.image.created="${DANDER_BUILD_CREATED}"
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy \
DANDER_BUILD_REVISION=${DANDER_BUILD_REVISION} \
DANDER_BUILD_CREATED=${DANDER_BUILD_CREATED}
WORKDIR /app
RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
libpq5 \
bsdutils \
gzip \
libblkid1 \
liblastlog2-2 \
libmount1 \
libpcre2-8-0 \
libsmartcols1 \
libsqlite3-0 \
libuuid1 \
login \
mount \
openssl \
perl-base \
util-linux \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir uv==0.12.0
COPY pyproject.toml uv.lock README.md LICENSE ./
COPY src ./src
COPY connectors ./connectors
COPY graphs ./graphs
COPY models ./models
COPY examples ./examples
COPY infra ./infra
RUN uv sync --frozen --no-dev --no-editable --extra runtime-all \
&& .venv/bin/python -c "from dander.providers.dependencies import require_full_runtime; require_full_runtime()"
COPY dander.yaml ./dander.yaml
USER 65532:65532
ENTRYPOINT ["/app/.venv/bin/dander"]
CMD ["run", "greenhouse_job_board", "--guarded-free-tier"]