-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathDockerfile.dagster
More file actions
48 lines (35 loc) · 913 Bytes
/
Dockerfile.dagster
File metadata and controls
48 lines (35 loc) · 913 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
37
38
39
40
41
42
43
44
45
46
# syntax=docker/dockerfile:1.9
FROM python:3.12-slim-bookworm
# Install tiny (add more system packages here if needed)
RUN <<EOT
apt-get update -qy
apt-get install -qyy \
-o APT::Install-Recommends=false \
-o APT::Install-Suggests=false \
git \
tini
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
EOT
# Install dependencies
COPY dummydeps/pyproject.toml /_dummydeps/pyproject.toml
RUN --mount=type=cache,target=/root/.cache <<EOT
cd /_dummydeps
pip install .
EOT
# Install dagster
RUN pip install \
dagster==1.9.6 \
dagster-postgres \
dagster-aws \
dagster-k8s \
dagster-celery[flower,redis,kubernetes] \
dagster-celery-k8s
# Install the velodrome sugar-sdk
RUN pip install git+https://github.com/velodrome-finance/sugar-sdk
# Install the package
COPY dist/ /_dist/
RUN --mount=type=cache,target=/root/.cache <<EOT
cd /_dist
pip install *.whl
EOT