summarylogtreecommitdiffstats
path: root/Dockerfile
blob: f7e59c7154f38493f938b82afd2577e4cb3c1b76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM archlinux

# Install dependencies
RUN pacman --noconfirm -Sy fakeroot

# Set up user
RUN useradd -m builder
COPY PKGBUILD /home/builder
WORKDIR /home/builder

# Build package
USER builder
RUN makepkg

# Install package
USER root
RUN pacman --noconfirm -U patat-bin-*

# Test executable
USER builder
RUN patat --version