File: Dockerfile.archlinux

package info (click to toggle)
projecteur 0.10-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,664 kB
  • sloc: cpp: 11,301; xml: 33; ansic: 11; makefile: 3
file content (35 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (3)
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
26
27
28
29
30
31
32
33
34
35
# Container for building the Projecteur package
# Images available at: https://hub.docker.com/r/jahnf/projecteur/tags

FROM archlinux

RUN pacman --noconfirm -Sy && pacman --noconfirm -S \
  lsb-release \
  file \
  awk \
  fakeroot \
  sudo \
  tar \
  pkg-config \
  gcc \
  make \
  cmake \
  git \
  qt5-tools \
  qt5-base \
  qt5-declarative \
  qt5-x11extras \
  qt5-graphicaleffects

RUN pacman --noconfirm -Sy && pacman --noconfirm -S \
  libusb

# makepkg cannot run as root
RUN useradd builduser
RUN mkdir /build && chown builduser /build

# Allow builduser to run stuff as root:
RUN echo "builduser ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builduser

# Continue execution as builduser:
USER builduser