File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,11 @@ jobs:
28
28
runs-on : ubuntu-latest
29
29
steps :
30
30
- uses : actions/checkout@v4
31
- - uses : actions/setup-python@v5
31
+ - name : Set up uv
32
+ uses : astral-sh/setup-uv@v5
32
33
with :
33
34
python-version : 3.11
34
- - run : python -m pip install pre-commit
35
+ - run : uv tool install pre-commit
35
36
- run : pre-commit run -a --show-diff-on-failure
36
37
37
38
frontend-build :
Original file line number Diff line number Diff line change @@ -19,10 +19,11 @@ jobs:
19
19
runs-on : ubuntu-latest
20
20
steps :
21
21
- uses : actions/checkout@v4
22
- - uses : actions/setup-python@v5
22
+ - name : Set up uv
23
+ uses : astral-sh/setup-uv@v5
23
24
with :
24
25
python-version : 3.11
25
- - run : python -m pip install pre-commit
26
+ - run : uv tool install pre-commit
26
27
- run : pre-commit run -a --show-diff-on-failure
27
28
28
29
frontend-build :
Original file line number Diff line number Diff line change @@ -11,13 +11,18 @@ RUN apt-get update && apt-get install -y \
11
11
curl \
12
12
software-properties-common \
13
13
git \
14
+ sqlite3 \
14
15
&& rm -rf /var/lib/apt/lists/*
15
16
16
17
RUN if [ $(uname -m) = "aarch64" ]; then ARCH="arm64" ; else ARCH="amd64" ; fi && \
17
18
curl https://github.com/benbjohnson/litestream/releases/download/v0.3.9/litestream-v0.3.9-linux-$ARCH.deb -O -L && \
18
19
dpkg -i litestream-v0.3.9-linux-$ARCH.deb
19
20
20
- RUN pip install "dstack[all]==$VERSION" --progress-bar off
21
+ ADD https://astral.sh/uv/install.sh /uv-installer.sh
22
+ RUN sh /uv-installer.sh && rm /uv-installer.sh
23
+ ENV PATH="/root/.local/bin/:$PATH"
24
+
25
+ RUN uv tool install "dstack[all]==$VERSION"
21
26
22
27
COPY entrypoint.sh entrypoint.sh
23
28
RUN chmod 777 entrypoint.sh
Original file line number Diff line number Diff line change @@ -9,15 +9,20 @@ RUN apt-get update && apt-get install -y \
9
9
curl \
10
10
software-properties-common \
11
11
git \
12
+ sqlite3 \
12
13
&& rm -rf /var/lib/apt/lists/*
13
14
14
15
RUN if [ $(uname -m) = "aarch64" ]; then ARCH="arm64" ; else ARCH="amd64" ; fi && \
15
16
curl https://github.com/benbjohnson/litestream/releases/download/v0.3.9/litestream-v0.3.9-linux-$ARCH.deb -O -L && \
16
17
dpkg -i litestream-v0.3.9-linux-$ARCH.deb
17
18
19
+ ADD https://astral.sh/uv/install.sh /uv-installer.sh
20
+ RUN sh /uv-installer.sh && rm /uv-installer.sh
21
+ ENV PATH="/root/.local/bin/:$PATH"
22
+
23
+ COPY pyproject.toml uv.lock README.md ./
18
24
COPY src src
19
- COPY setup.py README.md ./
20
- RUN pip install '.[all]'
25
+ RUN SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 uv sync --extra all
21
26
22
27
COPY docker/server/entrypoint.sh entrypoint.sh
23
28
RUN chmod 777 entrypoint.sh
You can’t perform that action at this time.
0 commit comments