diff --git a/docker/wetty/Dockerfile b/docker/wetty/Dockerfile index 03da6cf2..bb3e226b 100644 --- a/docker/wetty/Dockerfile +++ b/docker/wetty/Dockerfile @@ -1,19 +1,23 @@ FROM alpine # Setup env and apt -RUN apk -U upgrade && \ - apk add bash \ - build-base \ - git \ - nodejs \ - nodejs-npm \ - openssh-client \ - python \ - procps && \ +RUN apk -U --no-cache add \ + build-base \ + git \ + nodejs \ + nodejs-npm \ + openssh-client \ + python && \ # Setup user addgroup -g 2000 wetty && \ - adduser -S -s /bin/bash -u 2000 -D -g 2000 wetty && \ + adduser -S -s /bin/ash -u 2000 -D -g 2000 wetty && \ + #mkdir -p /home/wetty/.ssh && \ + #chmod 755 /home/wetty/.ssh && \ + #chown wetty:wetty /home/wetty/.ssh && \ + #touch /home/wetty/.ssh/known_hosts && \ + #chmod 777 /home/wetty/.ssh/known_hosts && \ + #chown wetty:wetty /home/wetty/.ssh/known_hosts && \ # Get and install packages mkdir -p /opt/ && \ diff --git a/docker/wetty/docker-compose.yml b/docker/wetty/docker-compose.yml index faf72f11..c33cbba0 100644 --- a/docker/wetty/docker-compose.yml +++ b/docker/wetty/docker-compose.yml @@ -1,6 +1,4 @@ -# T-Pot (Standard) -# For docker-compose ... -version: '2.2' +version: '2.3' services: @@ -13,5 +11,8 @@ services: network_mode: "host" env_file: - /opt/tpot/etc/compose/wetty_environment + tmpfs: + - /home/wetty/.ssh/:uid=2000,gid=2000 image: "dtagdevsec/wetty:1804" read_only: true +