-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (35 loc) · 954 Bytes
/
Copy pathDockerfile
File metadata and controls
40 lines (35 loc) · 954 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
32
33
34
35
36
37
38
39
40
FROM debian:bookworm-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
bash \
ca-certificates \
coreutils \
curl \
dnsutils \
file \
findutils \
gawk \
grep \
iproute2 \
iputils-ping \
less \
netcat-openbsd \
openssh-client \
procps \
psmisc \
ripgrep \
rsync \
sed \
util-linux \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --shell /bin/bash learner
WORKDIR /course
COPY --chown=learner:learner scripts /course/scripts
COPY --chown=learner:learner labs /course/labs
COPY --chown=learner:learner exercises /course/exercises
COPY --chown=learner:learner solutions /course/solutions
COPY --chown=learner:learner tests /course/tests
USER learner
ENV LAB_ROOT=/tmp/linux-for-engineers
ENTRYPOINT ["/bin/bash"]