Skip to content

Commit b1a849a

Browse files
committed
temporarily only build for arm64
1 parent d333e7d commit b1a849a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ jobs:
3838
with:
3939
context: .
4040
push: true
41-
platforms: linux/amd64,linux/arm64
41+
# Note: arm64 disabled until headson publishes arm64 wheels
42+
platforms: linux/amd64
4243
tags: |
4344
ghcr.io/${{ steps.repo.outputs.name }}:latest
4445
ghcr.io/${{ steps.repo.outputs.name }}:${{ github.ref_name }}

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
2828
WORKDIR /app
2929
RUN chown app:app /app
3030

31+
# Create cache directories for uv and puccinialin (needed for arm64 builds of headson)
32+
RUN mkdir -p /home/app/.cache/uv /home/app/.cache/puccinialin && \
33+
chown -R app:app /home/app/.cache
34+
3135
# Switch to non-root user
3236
USER app
3337

@@ -36,7 +40,9 @@ COPY --chown=app:app pyproject.toml uv.lock* ./
3640
COPY --chown=app:app README.md ./
3741

3842
# Install dependencies using uv
43+
# Mount both uv cache and puccinialin cache (for Rust builds on arm64)
3944
RUN --mount=type=cache,target=/home/app/.cache/uv,uid=1000,gid=1000 \
45+
--mount=type=cache,target=/home/app/.cache/puccinialin,uid=1000,gid=1000 \
4046
uv sync --no-dev --locked
4147

4248
# Copy application code

0 commit comments

Comments
 (0)