tpotce/docker/wetty/Dockerfile

33 lines
797 B
Text
Raw Normal View History

2018-02-19 15:47:59 +00:00
FROM alpine
# Setup env and apt
RUN apk -U upgrade && \
2018-03-30 20:54:44 +00:00
apk add bash \
build-base \
git \
nodejs \
nodejs-npm \
openssh-client \
python \
procps && \
2018-02-19 15:47:59 +00:00
# Setup user
addgroup -g 2000 wetty && \
adduser -S -s /bin/bash -u 2000 -D -g 2000 wetty && \
# Get and install packages
2018-03-30 20:54:44 +00:00
mkdir -p /opt/ && \
cd /opt/ && \
2018-02-19 15:47:59 +00:00
npm install https://github.com/t3chn0m4g3/wetty && \
# Clean up
2018-03-30 20:54:44 +00:00
apk del --purge build-base \
git \
nodejs-npm \
python
2018-02-19 15:47:59 +00:00
# Start elasticsearch-head
2018-03-30 20:54:44 +00:00
WORKDIR /opt
USER wetty:wetty
2018-04-17 13:54:57 +00:00
CMD exec /usr/bin/node /opt/node_modules/wetty/app.js -p 64300 --host 127.0.0.1 --sshhost 127.0.0.1 --sshport 64295 --sshuser $MY_SSHUSER