prepare for wetty docker image

This commit is contained in:
Marco Ochse
2018-02-19 16:47:59 +01:00
parent 76dc360641
commit 50fab2207c
10 changed files with 71 additions and 19 deletions

23
docker/wetty/Dockerfile Normal file
View File

@ -0,0 +1,23 @@
FROM alpine
MAINTAINER MO
# Setup env and apt
RUN apk -U upgrade && \
apk add bash build-base git nodejs nodejs-npm openssh-client python procps && \
# Setup user
addgroup -g 2000 wetty && \
adduser -S -s /bin/bash -u 2000 -D -g 2000 wetty && \
# Get and install packages
mkdir -p /app/ && \
cd /app/ && \
npm install https://github.com/t3chn0m4g3/wetty && \
# Clean up
apk del build-base git nodejs-npm python
# Start elasticsearch-head
WORKDIR /app
USER wetty
CMD /usr/bin/node /app/node_modules/wetty/app.js -p 64300 --host 127.0.0.1 --sshhost 127.0.0.1 --sshport 64295 --sshuser $MY_SSHUSER