-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathContainerfile
More file actions
50 lines (42 loc) · 1.32 KB
/
Copy pathContainerfile
File metadata and controls
50 lines (42 loc) · 1.32 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Containerfile for kdevcxx_with_ai build environment
# Based on debian:13 with all required development packages installed
#
# Run with:
# $ podman build -t kdevcxx_with_ai-build-env .
# $ podman run -it kdevcxx_with_ai-build-env
#
FROM debian:13
# Set non-interactive mode for apt
ENV DEBIAN_FRONTEND=noninteractive
# Uncomment and set the hostname if you have a local apt-cache-ng server.
# RUN echo 'Acquire::http::Proxy "http://apt-cache.lan:3142/";' > /etc/apt/apt.conf.d/99proxy
# Install all required development packages
RUN apt-get update && apt-get install -y --no-install-recommends \
appstream \
ninja-build \
clang \
clang-format \
llvm \
lld \
cmake \
extra-cmake-modules \
curl ca-certificates \
git \
qtwebengine5-dev \
libkf5texteditor-dev \
libkf5parts-dev \
libboost-ext-ut-dev \
libboost-system-dev \
libboost-thread-dev \
libssl-dev \
kdevelop-dev \
libcups2-dev \
libspdlog-dev \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory to the project root
WORKDIR /app
# Copy the source code into the container
# Using .dockerignore to exclude build directories and other unnecessary files
COPY . /app
# Default command (can be overridden when running the container)
CMD ["/bin/sh", "-c", "cmake --workflow --preset='clang-release'"]