mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +08:00
All docker files do not call isntall-build-deps.sh. Instead, cmake passes REQUIREDPKGS to Dockerfiles, which is derived from the output of ./scripts/install-build-deps.sh --dont-install --platform PLATFORM. This change enables caching package installaion during docker build.
21 lines
415 B
Docker
21 lines
415 B
Docker
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
|
|
|