Escalate privileges to test single user installation
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
FROM debian:8
|
||||
|
||||
RUN useradd -ms /bin/bash user
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
curl \
|
||||
build-essential \
|
||||
libbz2-dev \
|
||||
@@ -19,4 +17,7 @@ WORKDIR /opt/
|
||||
COPY build /opt/build
|
||||
RUN bash build
|
||||
|
||||
RUN useradd -ms /bin/bash user \
|
||||
&& echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||
|
||||
CMD ["/sbin/init"]
|
||||
|
||||
Reference in New Issue
Block a user