Skip to content

Commit ae40891

Browse files
streamline package installation
1 parent 04af72e commit ae40891

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ ENV DEBIAN_FRONTEND=noninteractive
55

66
# 0 - core packages
77
RUN apt-get update && \
8-
apt-get install -y --no-install-recommends \
9-
openssh-server sudo gcc make curl wget python3 && \
10-
apt-get clean && rm -rf /var/lib/apt/lists/*
8+
apt-get upgrade -y && \
9+
apt-get install -y openssh-server && \
10+
apt-get autoremove -y
1111

1212
# 1 - users / passwords (root: aim8Du7h - lowpriv: trustno1)
1313
RUN useradd -m -s /bin/bash lowpriv && \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
22
set -e
3-
apt-get update && apt-get install -y sudo && apt-get clean
3+
apt-get update && apt-get install -y sudo less man && apt-get clean
44
echo "lowpriv ALL=(ALL) NOPASSWD:/usr/bin/less, /usr/bin/man" > /etc/sudoers.d/gtfo-int
55
chmod 440 /etc/sudoers.d/gtfo-int

0 commit comments

Comments
 (0)