Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
FROM ubuntu:20.04
|
2 |
|
3 |
-
RUN useradd -m -u 1000 leo && \
|
4 |
echo "leo:zxcvbnm" | chpasswd && \
|
5 |
apt update && \
|
6 |
apt install -y sudo curl && \
|
7 |
-
|
|
|
|
|
8 |
|
9 |
USER leo
|
10 |
ENV HOME=/home/leo \
|
|
|
1 |
FROM ubuntu:20.04
|
2 |
|
3 |
+
RUN useradd -m -s /bin/bash -u 1000 leo && \
|
4 |
echo "leo:zxcvbnm" | chpasswd && \
|
5 |
apt update && \
|
6 |
apt install -y sudo curl && \
|
7 |
+
usermod -aG sudo && \
|
8 |
+
echo "leo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
|
9 |
+
echo "root:zxcvbnm" | chpasswd
|
10 |
|
11 |
USER leo
|
12 |
ENV HOME=/home/leo \
|