-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (31 loc) · 894 Bytes
/
Dockerfile
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
FROM ubuntu:22.04
#FROM ubuntu:18.04
CMD bash
# Install Ubuntu packages.
# Please add packages in alphabetical order.
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get clean
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get -y update --fix-missing && \
apt-get -y install \
build-essential \
fuse libfuse-dev \
sudo \
clang-14 \
clang-format-14 \
clang-tidy-14 \
cmake \
doxygen \
git \
g++-12 \
pkg-config \
gdb \
zlib1g-dev && \
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-14 100 && \
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-14 100 && \
ln -s /usr/bin/clang-format-14 /usr/bin/clang-format
COPY mypasswd /tmp
RUN useradd --no-log-init -r -m -g sudo stu
RUN cat /tmp/mypasswd | chpasswd
USER stu
WORKDIR /home/stu/