Update Dockerfile to use Arch Linux base and adjust user setup for build process
Some checks failed
Push Docker image / build (push) Has been cancelled

This commit is contained in:
Edgar P. Burkhart 2025-05-05 18:34:14 +02:00
parent 8f056139f1
commit 6689c92793
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 9 additions and 7 deletions

View file

@ -22,4 +22,4 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: code.edgarpierre.fr/edpibu/uv-act:${{ github.ref_name }}
tags: code.edgarpierre.fr/edpibu/archlinux-act:${{ github.ref_name }}

View file

@ -1,7 +1,9 @@
FROM ghcr.io/catthehacker/ubuntu:act-latest
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
FROM archlinux:base-devel
RUN useradd uv
RUN mkdir -p /home/uv
RUN chown -R uv:uv /home/uv
USER uv
RUN pacman -Syu --needed --noconfirm nodejs git
RUN useradd -d /build -m build
USER build
WORKDIR /build
RUN echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers