tatoy commited on
Commit
9c593b4
·
verified ·
1 Parent(s): 928e4ae

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -9
Dockerfile CHANGED
@@ -5,14 +5,10 @@ FROM ubuntu:latest
5
  RUN apt-get update && apt-get install -y \
6
  bash \
7
  wget \
8
- ca-certificates \
9
- sudo
10
 
11
  RUN apt-get clean && rm -rf /var/lib/apt/lists/*
12
 
13
- # Disable 'no new privileges' flag
14
- # RUN echo 'Defaults !sysctl,!snap' > /etc/sudoers.d/no-new-privileges
15
-
16
  # Create /data directory and give permission to user 1001
17
  RUN mkdir -p /data && chown -R 1001:1001 /data
18
 
@@ -22,10 +18,8 @@ RUN wget -O gotty.tar.gz https://github.com/yudai/gotty/releases/download/v1.0.1
22
  && chmod +x /usr/local/bin/gotty \
23
  && rm gotty.tar.gz
24
 
25
- # Create user 1001 and set working directory
26
- RUN useradd -u 1001 -d /data user1001 \
27
- && echo 'user1001 ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/user1001 \
28
- && chmod 0440 /etc/sudoers.d/user1001
29
 
30
  # Switch to user 1001 and set working directory
31
  USER 1001
 
5
  RUN apt-get update && apt-get install -y \
6
  bash \
7
  wget \
8
+ ca-certificates
 
9
 
10
  RUN apt-get clean && rm -rf /var/lib/apt/lists/*
11
 
 
 
 
12
  # Create /data directory and give permission to user 1001
13
  RUN mkdir -p /data && chown -R 1001:1001 /data
14
 
 
18
  && chmod +x /usr/local/bin/gotty \
19
  && rm gotty.tar.gz
20
 
21
+ # Create user 1001
22
+ RUN useradd -u 1001 -d /data user1001
 
 
23
 
24
  # Switch to user 1001 and set working directory
25
  USER 1001