Add Dockerfile and assets
This commit is contained in:
parent
a33815eec3
commit
98b94410cf
3 changed files with 13 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM ubuntu
|
||||
|
||||
COPY assets assets
|
||||
|
||||
RUN apt update && apt install openssh-server sudo -y
|
||||
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test
|
||||
RUN echo 'test:test' | chpasswd
|
||||
RUN service ssh start
|
||||
|
||||
EXPOSE 22
|
||||
|
||||
# Start the OpenSSH server
|
||||
CMD ["/usr/sbin/sshd", "-D"]
|
0
assets/service1/bar
Normal file
0
assets/service1/bar
Normal file
0
assets/service1/foo
Normal file
0
assets/service1/foo
Normal file
Loading…
Reference in a new issue