Initial Commit
This commit is contained in:
30
vulnbox/DOCKERFILE
Normal file
30
vulnbox/DOCKERFILE
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM alpine
|
||||
|
||||
ENV PATH "$PATH:/docker-bin"
|
||||
|
||||
RUN apk update && apk upgrade
|
||||
RUN apk add nginx openssh openrc \
|
||||
nano openssl git nginx-mod-stream \
|
||||
nginx-mod-http-headers-more \
|
||||
tcpdump
|
||||
|
||||
# NGINX
|
||||
RUN adduser -D -g 'www' www
|
||||
RUN mkdir /www
|
||||
RUN chown -R www:www /var/lib/nginx
|
||||
RUN chown -R www:www /www
|
||||
|
||||
RUN cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.orig
|
||||
|
||||
# SSHD
|
||||
RUN rc-update add sshd
|
||||
RUN touch /run/openrc/softlevel
|
||||
|
||||
COPY ./ssh/sshd_config /etc/ssh/sshd_config
|
||||
|
||||
WORKDIR /docker-bin
|
||||
|
||||
COPY ./helper-scripts /docker-bin
|
||||
|
||||
RUN chmod +x /docker-bin/*
|
||||
|
||||
Reference in New Issue
Block a user