summaryrefslogtreecommitdiff
path: root/docker/build-deb.Dockerfile
blob: e3e63817df36f3c387c7a76b35ebde98773b36d3 (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 DEBIAN_FRONTEND=noninteractive
RUN set -ex && apt-get update && apt-get install -y --no-install-recommends \
	ca-certificates build-essential devscripts debhelper gcc make cmake

ARG mscpdir="/debbuild/mscp"

COPY . ${mscpdir}

# install build dependency
RUN ${mscpdir}/scripts/install-build-deps.sh

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

# Then all debuild output files exsit at /debbuild