Skip to content

Commit

Permalink
Добавлен Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
qzeleza committed Nov 2, 2024
1 parent 19254a3 commit 10e0c08
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions ipk/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

FROM debian:11

ARG DEBIAN_FRONTEND=noninteractive
ARG USER_NAME

RUN \
apt-get update && \
apt-get install -y \
build-essential \
ccache \
curl \
gawk \
g++-multilib \
gcc-multilib \
genisoimage \
git-core \
gosu \
libdw-dev \
libelf-dev \
libssl-dev \
libncurses5-dev \
locales \
mc \
jq \
pv \
nano \
pwgen \
python \
python3 \
python3-pip \
qemu-utils \
rsync \
signify-openbsd \
subversion \
sudo \
swig \
unzip \
iputils-ping \
wget \
zstd && \
apt-get clean && \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime

RUN pip3 install -U pip
RUN pip3 install \
pyelftools \
pyOpenSSL \
service_identity

ENV LANG=en_US.utf8

RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN useradd -c "Пользователь для сборки образов Entware " -m -d /home/${USER_NAME} -G sudo -s /bin/bash ${USER_NAME}

USER ${USER_NAME}
WORKDIR /home/${USER_NAME}
ENV HOME /home/${USER_NAME}

0 comments on commit 10e0c08

Please sign in to comment.