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

# Install dependencies
RUN pacman --noconfirm -Sy fakeroot debugedit

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

# Build package
USER builder
RUN makepkg --printsrcinfo >.SRCINFO
RUN makepkg

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

# Test executable
USER builder
RUN patat --version

# Produce new .SRCINFO
CMD cat .SRCINFO