mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 11:48:52 +00:00
32 lines
797 B
Docker
32 lines
797 B
Docker
FROM alpine
|
|
|
|
# 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 /opt/ && \
|
|
cd /opt/ && \
|
|
npm install https://github.com/t3chn0m4g3/wetty && \
|
|
|
|
# Clean up
|
|
apk del --purge build-base \
|
|
git \
|
|
nodejs-npm \
|
|
python
|
|
|
|
# Start elasticsearch-head
|
|
WORKDIR /opt
|
|
USER wetty:wetty
|
|
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
|