initial commit with basic level 0 on single machine
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
ARG levelNum=0
|
||||
|
||||
RUN <<EOF
|
||||
useradd -m -s /bin/bash player${levelNum}
|
||||
echo 'root:superSecretRootPassword' | chpasswd
|
||||
echo "player${levelNum}:superSecretPlayerPassword${levelNum}" | chpasswd
|
||||
|
||||
EOF
|
||||
|
||||
COPY ./levels/level${levelNum} /home/player$levelNum
|
||||
|
||||
USER player${levelNum}
|
||||
|
||||
WORKDIR /home/player$levelNum
|
||||
|
||||
CMD /bin/bash
|
||||
Reference in New Issue
Block a user