Matheus Sampaio Queiroga
0410b1e7bb
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
22 lines
1.3 KiB
Docker
22 lines
1.3 KiB
Docker
# syntax=docker/dockerfile:1.3-labs
|
|
FROM ubuntu:22.04 AS latest
|
|
ARG DEBIAN_FRONTEND="noninteractive"
|
|
RUN <<EOF
|
|
apt update
|
|
apt list --upgradable -a
|
|
apt upgrade -y
|
|
apt install -y sudo curl wget
|
|
apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev libssl-dev libtool lrzsz mkisofs msmtp ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
|
|
curl -Ssl https://get.docker.com | sh
|
|
EOF
|
|
|
|
ARG USER="openwrt" PASSWORD="1234" UID="1000" GID="1000"
|
|
RUN addgroup --gid ${GID} "${USER}"; useradd --uid ${UID} --gid ${GID} -G "sudo,docker" "${USER}" && \
|
|
mkdir -p "/home/${USER}" && \
|
|
(echo "${PASSWORD}"; echo "${PASSWORD}"; ) | passwd "${USER}" && \
|
|
chown "${USER}:${USER}" "/home/${USER}"
|
|
USER "${USER}"
|
|
WORKDIR "/home/${USER}"
|
|
|
|
# Set version support in this docker image
|
|
ENV OPENWRT_VERSION="19+" |