-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.deb
More file actions
36 lines (29 loc) · 869 Bytes
/
Dockerfile.deb
File metadata and controls
36 lines (29 loc) · 869 Bytes
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
# Dockerfile for building kate-code .deb package
# Usage:
# docker build -f Dockerfile.deb -t kate-code-deb .
# docker run --rm -v $(pwd)/dist:/dist kate-code-deb
FROM debian:trixie
# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
extra-cmake-modules \
libkf6texteditor-dev \
libkf6i18n-dev \
libkf6coreaddons-dev \
libkf6xmlgui-dev \
libkf6syntaxhighlighting-dev \
libkf6wallet-dev \
libkf6pty-dev \
qt6-webengine-dev \
devscripts \
debhelper \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /build
# Copy source
COPY . /build/
# Build the package
RUN dpkg-buildpackage -us -uc -b
# Move .deb to output directory
RUN mkdir -p /dist && mv /kate-code_*.deb /dist/ 2>/dev/null || mv ../*.deb /dist/
CMD ["cp", "-r", "/dist/.", "/output/"]