Docker_Pshitt/Dockerfile
2018-08-22 00:39:18 +02:00

17 lines
599 B
Docker

FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y git python-setuptools python-pip && \
cd /srv && \
git clone https://github.com/regit/pshitt.git && \
mkdir -p /srv/pshitt/keys /srv/pshitt/_LOG && \
#pip install --upgrade pip && \
pip install python-daemon && \
pip install argparse && \
pip install paramiko && \
rm -rf /var/lib/apt/lists/*
EXPOSE 2222
ENTRYPOINT /srv/pshitt/./pshitt -p 2222 -k /srv/pshitt/_HOST_SSH_KEYS/ssh_host_rsa_key -o /srv/pshitt/_LOG/$(date +%Y%m%d%H%M)_data.json -l /srv/pshitt/_LOG/$(date +%Y%m%d%H%M)_log.log && /bin/bash