File: Dockerfile.almalinux

package info (click to toggle)
flashprog 1.5-2~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,160 kB
  • sloc: ansic: 62,108; makefile: 941; sh: 338
file content (31 lines) | stat: -rw-r--r-- 721 bytes parent folder | download | duplicates (2)
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
FROM manibase

RUN \
	useradd -p locked -m mani && \
	if dnf repolist powertools | grep -q powertools; then \
		powertools=powertools; \
	else \
		powertools=crb; \
	fi && \
	dnf install -y --enablerepo=${powertools} \
		ca-certificates shadow-utils \
		git gcc make systemd-devel meson \
		pciutils-devel libusbx-devel && \
	{ dnf install -y libgpiod-devel || true; } && \
	dnf clean -y all

RUN dnf install -y diffutils && dnf clean -y all

RUN mkdir -p -m 1777 /ccache

ENV GIT_SSL_NO_VERIFY=1
USER mani

ARG ORIGIN=https://review.sourcearcade.org/flashprog.git
RUN \
	cd && \
	git clone ${ORIGIN} flashprog

ENV DEVSHELL /bin/bash
COPY mani-wrapper.sh /home/mani/
ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]