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
Some checks failed
Push Docker image / build (push) Has been cancelled
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
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
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
|
FROM archlinux:base-devel
|
||||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
|
||||||
|
|
||||||
RUN useradd uv
|
RUN pacman -Syu --needed --noconfirm nodejs git
|
||||||
RUN mkdir -p /home/uv
|
|
||||||
RUN chown -R uv:uv /home/uv
|
RUN useradd -d /build -m build
|
||||||
USER uv
|
USER build
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
RUN echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
Loading…
Add table
Add a link
Reference in a new issue