Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Reichl <[email protected]>
  • Loading branch information
thetredev committed Oct 1, 2023
0 parents commit 0921576
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build non-root XBPS container image

on:
push:
branches:
- docker

# TODO: create arch matrix
env:
GHCR_IMAGE: "ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:x86_64"

jobs:
build:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build container image
run: |
docker build -t ${GHCR_IMAGE} image/x86_64
docker push ${GHCR_IMAGE}
17 changes: 17 additions & 0 deletions image/x86_64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ghcr.io/void-linux/void-buildroot-glibc:20230904R2

RUN xbps-install -Sy \
xbps \
&& xbps-install -Syu \
&& xbps-install -Sy \
git \
cmake \
python3 \
tar \
shadow \
util-linux \
&& groupadd -g 5000 user \
&& useradd -u 5000 -g user -s /bin/bash user

WORKDIR /home/user
USER user

0 comments on commit 0921576

Please sign in to comment.