mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 19:58:52 +00:00
31 lines
780 B
Docker
31 lines
780 B
Docker
FROM alpine
|
|
|
|
# Setup apk
|
|
RUN apk -U add bash \
|
|
build-base \
|
|
git \
|
|
go \
|
|
procps && \
|
|
|
|
# Setup go, vnclowpot
|
|
export GOPATH=/opt/go/ && \
|
|
mkdir -p /opt/go/ && \
|
|
cd /opt && \
|
|
go get github.com/magisterquis/vnclowpot && \
|
|
go install github.com/magisterquis/vnclowpot && \
|
|
|
|
# Setup user, groups and configs
|
|
addgroup -g 2000 vnclowpot && \
|
|
adduser -S -s /bin/bash -u 2000 -D -g 2000 vnclowpot && \
|
|
mkdir -p /var/log/vnclowpot && \
|
|
|
|
# Clean up
|
|
apk del build-base \
|
|
git \
|
|
go && \
|
|
rm -rf /opt/go/src \
|
|
/var/cache/apk/* \
|
|
|
|
# Run supervisor upon container start
|
|
USER vnclowpot:vnclowpot
|
|
CMD exec /opt/go/bin/vnclowpot -j >> /var/log/vnclowpot/vnclowpot.log
|