Update Dockerfile to use Arch Linux base and adjust user setup for build process
This commit is contained in:
parent
8f056139f1
commit
6689c92793
2 changed files with 9 additions and 7 deletions
|
@ -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 }}
|
||||
|
|
14
Dockerfile
14
Dockerfile
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue