mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
tweaking, hardening
This commit is contained in:
@ -1,8 +1,4 @@
|
||||
FROM alpine
|
||||
MAINTAINER MO
|
||||
|
||||
# Include dist
|
||||
#ADD dist/ /root/dist/
|
||||
|
||||
# Setup apk
|
||||
RUN apk -U add bash \
|
||||
@ -11,7 +7,10 @@ RUN apk -U add bash \
|
||||
go \
|
||||
procps && \
|
||||
|
||||
# Setup vnclowpot
|
||||
# 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 && \
|
||||
|
||||
@ -22,8 +21,10 @@ RUN apk -U add bash \
|
||||
|
||||
# Clean up
|
||||
apk del build-base \
|
||||
git && \
|
||||
git \
|
||||
go && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
# Run supervisor upon container start
|
||||
CMD /root/go/bin/vnclowpot -j >> /var/log/vnclowpot/vnclowpot.log
|
||||
USER vnclowpot:vnclowpot
|
||||
CMD /opt/go/bin/vnclowpot -j >> /var/log/vnclowpot/vnclowpot.log
|
||||
|
@ -1,4 +1,4 @@
|
||||
[](https://microbadger.com/images/dtagdevsec/vnclowpot:1710 "Get your own version badge on microbadger.com") [](https://microbadger.com/images/dtagdevsec/vnclowpot:1710 "Get your own image badge on microbadger.com")
|
||||
[](https://microbadger.com/images/dtagdevsec/vnclowpot:1804 "Get your own version badge on microbadger.com") [](https://microbadger.com/images/dtagdevsec/vnclowpot:1804 "Get your own image badge on microbadger.com")
|
||||
|
||||
# vnclowpot
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
version: '2.1'
|
||||
version: '2.2'
|
||||
|
||||
networks:
|
||||
vnclowpot_local:
|
||||
@ -7,12 +7,14 @@ services:
|
||||
|
||||
# vnclowpot service
|
||||
vnclowpot:
|
||||
build: .
|
||||
container_name: vnclowpot
|
||||
restart: always
|
||||
networks:
|
||||
- vnclowpot_local
|
||||
ports:
|
||||
- "5900:5900"
|
||||
image: "dtagdevsec/vnclowpot:1710"
|
||||
image: "dtagdevsec/vnclowpot:1804"
|
||||
read_only: true
|
||||
volumes:
|
||||
- /data/vnclowpot/log:/var/log/vnclowpot
|
||||
|
Reference in New Issue
Block a user