-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.openwrt-legacy
More file actions
30 lines (23 loc) · 1.13 KB
/
Dockerfile.openwrt-legacy
File metadata and controls
30 lines (23 loc) · 1.13 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
FROM ubuntu:20.04
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update -y
RUN apt upgrade -y
RUN apt install -y build-essential
RUN apt install -y gcc g++ binutils patch bzip2 flex make gettext pkg-config unzip zlib1g-dev libc6-dev subversion libncurses5-dev gawk sharutils curl libxml-parser-perl ocaml-nox ocaml ocaml-findlib python-yaml libssl-dev libfdt-dev
RUN apt install -y device-tree-compiler u-boot-tools
RUN apt install -y libssl-dev python3-distutils git wget curl python3-pip sudo libelf-dev
RUN apt install -y zsh rsync upx vim
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
RUN echo "export FORCE_UNSAFE_CONFIGURE=1" >> /root/.zshrc
RUN wget -O /go-linux-amd64.tar.gz https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
RUN rm -rf /usr/local/go && tar -C /usr/local -xzf /go-linux-amd64.tar.gz
ENV PATH="${PATH}:/usr/local/go/bin"
RUN git config --global --add safe.directory '*'
RUN useradd \
--create-home \
--shell=/bin/bash \
--uid=1000 \
--user-group coder && \
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
USER coder