Skip to content

Commit

Permalink
add sudo/curl to ImageBuilder/SDK
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Spooren <mail@aparcar.org>
  • Loading branch information
aparcar committed Aug 17, 2019
1 parent 19285e3 commit c8beb1b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ MAINTAINER Paul Spooren <mail@aparcar.org>
RUN apt-get update -qq &&\
apt-get install -y \
build-essential \
curl \
file \
gawk \
gettext \
Expand All @@ -14,13 +15,17 @@ RUN apt-get update -qq &&\
python2.7 \
python3 \
subversion \
sudo \
swig \
unzip \
wget \
zlib1g-dev \
&& apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN useradd -c "OpenWrt Builder" -m -d /home/build -s /bin/bash build
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN useradd -c "OpenWrt Builder" -m -d /home/build -G sudo -s /bin/bash build
COPY --chown=build:build . /home/build/openwrt/
RUN chown build:build /home/build/openwrt/

Expand Down

0 comments on commit c8beb1b

Please sign in to comment.