aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/obs/data/build_srcpkg.Dockerfile
blob: f5d72cd489732f4caaf3ec04631ed956ff37c26e (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
26
27
28
29
30
31
32
33
34
35
36
FROM	debian:bullseye
ARG	UID

RUN	apt-get update && \
	apt-get upgrade -y && \
	apt-get install -y --no-install-recommends \
		ca-certificates \
		gnupg2 \
		&& \
	apt-get clean

COPY	Release.key /tmp/Release.key
RUN	apt-key add /tmp/Release.key && \
	rm /tmp/Release.key && \
	echo "deb https://downloads.osmocom.org/packages/osmocom:/latest/Debian_11/ ./" \
		> /etc/apt/sources.list.d/osmocom-latest.list

RUN	apt-get update && \
	apt-get upgrade -y && \
	apt-get install -y --no-install-recommends \
		debhelper \
		dh-python \
		dpkg-dev \
		fakeroot \
		git \
		git-review \
		meson \
		osc \
		python3-setuptools \
		rebar3 \
		sed \
		&& \
	apt-get clean

RUN	useradd --uid=${UID} -m user
USER	user