forked from laluka/skillarch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-lite
More file actions
30 lines (25 loc) · 736 Bytes
/
Dockerfile-lite
File metadata and controls
30 lines (25 loc) · 736 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
FROM cachyos/cachyos:latest
# Create hacker user and group, set password and configure sudo
RUN groupadd hacker && \
useradd -m -g hacker -s /bin/bash hacker && \
echo "hacker:offenskill" | chpasswd && \
echo "hacker ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/hacker
# Add skillarch
COPY . /opt/skillarch
RUN chown -R hacker:hacker /opt/skillarch
USER hacker
ENV USER=hacker
ENV TZ=UTC
WORKDIR /opt/skillarch
# Install skillarch
RUN make install-base
RUN make install-cli-tools
RUN make install-shell
RUN make install-offensive
# Remove NOPASSWD capability after installation
USER root
RUN echo "hacker ALL=(ALL) ALL" > /etc/sudoers.d/hacker
# Final setup
USER hacker
WORKDIR /home/hacker
ENTRYPOINT ["/bin/zsh", "-il"]