-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
80 lines (71 loc) · 2.22 KB
/
Dockerfile
File metadata and controls
80 lines (71 loc) · 2.22 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Use the official Ubuntu 20.04 base image
FROM ubuntu:20.04
# Set the maintainer label with a Telegram link
LABEL maintainer="https://t.me/@Farley_Mi"
# Set non-interactive mode for apt-get
ENV DEBIAN_FRONTEND=noninteractive
# Update the package list and install necessary packages
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y \
nano \
bc \
bison \
ca-certificates \
curl \
flex \
gcc \
git \
libc6-dev \
libssl-dev \
openssl \
python-is-python3 \
ssh \
wget \
zip \
zstd \
sudo \
make \
clang \
gcc-arm-linux-gnueabi \
software-properties-common \
build-essential \
libarchive-tools \
gcc-aarch64-linux-gnu \
libffi-dev \
libncurses5-dev \
zlib1g \
zlib1g-dev \
libreadline-dev \
libbz2-dev \
libsqlite3-dev \
pigz \
python2 \
python3 \
cpio \
lld \
zsh && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /root
# Clone the proton-clang repository
RUN git clone https://gitlab.com/LeCmnGend/proton-clang -b clang-15 --depth=1 /root/BuildTools/clang-proton
# Copy the local BuildTools directory to the /root/BuildTools directory in the container
COPY BuildTools /root/BuildTools
# Install Oh My Zsh
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && \
# Set the default shell to zsh
chsh -s $(which zsh) && \
# Change theme to "gnzh"
sed -i 's/ZSH_THEME=".*"/ZSH_THEME="gnzh"/' ~/.zshrc
# Add custom credits to the .zshrc file
RUN echo 'clear' >> ~/.zshrc && \
echo 'echo "Welcome to BuildOS"' >> ~/.zshrc && \
echo 'echo "Make Your build easier!!"' >> ~/.zshrc && \
echo 'echo "______________________________________"' >> ~/.zshrc && \
echo 'echo "Maintained by: https://t.me/@Farley_Mi"' >> ~/.zshrc && \
echo 'echo "You can PM me if you need more tools!!"' >> ~/.zshrc && \
echo 'echo "______________________________________"' >> ~/.zshrc
# Default command to run
CMD ["zsh"]