Skip to content

Commit c414fd6

Browse files
committed
build: simplify Dockerfile
1 parent 4395e43 commit c414fd6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/build-test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ jobs:
9696
context: .
9797
file: ./Dockerfile
9898
push: false
99+
load: true
99100
platforms: linux/amd64,linux/arm64
100101
cache-from: type=registry,ref=ghcr.io/elementsinteractive/twyn:buildcache
101-
102+
tags: test-build
103+
104+
- name: Test
105+
run: |
106+
docker run --rm test-build --version

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ ENV PATH="/root/.local/bin/:$PATH"
3737
# Create a fake VERSION file, so that we don't break the cache because of a mismatch in that file
3838
RUN echo "v0.0.0" > VERSION
3939

40-
RUN UV_PROJECT_ENVIRONMENT=${VENV_PATH} uv venv
40+
RUN uv venv
4141
RUN ${BIN_PATH}/python -m ensurepip
4242

4343
# Copy dependency files
4444
COPY uv.lock pyproject.toml ./
4545

4646
# Install dependencies using uv (only dependencies, not the project itself)
47-
RUN UV_PROJECT_ENVIRONMENT=${VENV_PATH} uv sync --inexact --frozen --all-extras --no-install-project --compile-bytecode
47+
RUN uv sync --inexact --frozen --all-extras --no-install-project --compile-bytecode
4848

4949
# --------------- `final` stage ---------------
5050
FROM base AS final

0 commit comments

Comments
 (0)