Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
docker_files/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20 lines (15 sloc)
520 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
MAINTAINER James Shuttleworth <csx239@coventry.ac.uk> | |
RUN apt-get update | |
RUN apt-get -y install net-tools | |
RUN apt-get -y install openssh-server sudo | |
RUN apt-get -y install zip unzip | |
COPY starter.sh /root/ | |
RUN chmod u+x /root/starter.sh | |
RUN useradd -ms /bin/bash tri | |
RUN echo "tri:force"|chpasswd | |
RUN echo "tri ALL = NOPASSWD: /usr/bin/unzip" >> /etc/sudoers | |
RUN chmod a+rx /root/ | |
RUN echo "This is a file only accessible by root" > /root/flag.txt | |
RUN chmod a-rwx /root/flag.txt | |
CMD ["/root/starter.sh"] | |