summaryrefslogtreecommitdiff
path: root/Dockerfile/build-deb.Dockerfile
blob: 2b8d71e719f4bfcde53aa054a53b5fdf68a210d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ubuntu:22.04

ARG REQUIREDPKGS

ARG DEBIAN_FRONTEND=noninteractive
RUN set -ex && apt-get update && apt-get install -y --no-install-recommends \
	${REQUIREDPKGS} ca-certificates \
	build-essential devscripts debhelper gcc make cmake

ARG mscpdir="/debbuild/mscp"

COPY . ${mscpdir}

# build
RUN cd ${mscpdir} 	\
	&& debuild -us -uc -S \
	&& mv ${mscpdir} /

# Then all debuild output files exsit at /debbuild