novao
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -9,7 +9,10 @@ RUN apt-get update && \
|
|
| 9 |
apt-get install -y nodejs && \
|
| 10 |
rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
-
RUN useradd -m -s /usr/bin/fish ubuntu && \
|
|
|
|
|
|
|
|
|
|
| 13 |
RUN apt-get install cmatrix -y || echo error
|
| 14 |
|
| 15 |
USER root
|
|
|
|
| 9 |
apt-get install -y nodejs && \
|
| 10 |
rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
RUN id -u ubuntu >/dev/null 2>&1 || useradd -m -s /usr/bin/fish ubuntu && \
|
| 13 |
+
usermod -s /usr/bin/fish ubuntu && \
|
| 14 |
+
echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
| 15 |
+
|
| 16 |
RUN apt-get install cmatrix -y || echo error
|
| 17 |
|
| 18 |
USER root
|