forked from includeos/IncludeOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 665 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 665 Bytes
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
31
FROM ubuntu:xenial
RUN apt-get update && apt-get -y install \
git \
net-tools \
sudo \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --create-home -s /bin/bash ubuntu
RUN adduser ubuntu sudo
RUN echo -n 'ubuntu:ubuntu' | chpasswd
# Enable passwordless sudo for users under the "sudo" group
RUN sed -i.bkp -e \
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' \
/etc/sudoers
USER ubuntu
ADD . /home/ubuntu/IncludeOS
WORKDIR /home/ubuntu/IncludeOS
RUN sudo apt-get update && \
sudo do_bridge="" ./etc/install_all_source.sh \
&& sudo rm -rf /var/lib/apt/lists/*
VOLUME /service
WORKDIR /service
CMD ./run.sh