-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (44 loc) · 1.29 KB
/
Copy pathDockerfile
File metadata and controls
50 lines (44 loc) · 1.29 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
FROM ubuntu:24.04
# メタデータ
LABEL maintainer="Cm Language Project"
LABEL description="Cm Compiler Development Environment"
# 非対話モード
ENV DEBIAN_FRONTEND=noninteractive
# 基本ツール
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
ninja-build \
git \
curl \
wget \
pkg-config \
# GCC
gcc-13 \
g++-13 \
# Clang / LLVM
clang-17 \
llvm-17-dev \
clang-format-17 \
clang-tidy-17 \
lld-17 \
# OpenSSL(HTTPS対応)
libssl-dev \
# テスト
libgtest-dev \
# カバレッジ
lcov \
# その他
python3 \
&& rm -rf /var/lib/apt/lists/*
# デフォルトコンパイラ設定
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 100 \
&& update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 100 \
&& update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-17 100 \
&& update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-17 100 \
&& update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-17 100
# 作業ディレクトリ
WORKDIR /workspace
# デフォルトコマンド
CMD ["bash"]