This commit is contained in:
Marco Ochse 2018-05-23 14:16:13 +00:00
parent 2128c6a2b0
commit e1c806ebe8
2 changed files with 18 additions and 13 deletions

View file

@ -1,19 +1,23 @@
FROM alpine
# Setup env and apt
RUN apk -U upgrade && \
apk add bash \
RUN apk -U --no-cache add \
build-base \
git \
nodejs \
nodejs-npm \
openssh-client \
python \
procps && \
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/ && \

View file

@ -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