tweaking, hardening

This commit is contained in:
Marco Ochse
2018-03-30 20:54:44 +00:00
parent 594361a056
commit 5c403a5cce
7 changed files with 40 additions and 27 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
[![](https://images.microbadger.com/badges/version/dtagdevsec/vnclowpot:1710.svg)](https://microbadger.com/images/dtagdevsec/vnclowpot:1710 "Get your own version badge on microbadger.com") [![](https://images.microbadger.com/badges/image/dtagdevsec/vnclowpot:1710.svg)](https://microbadger.com/images/dtagdevsec/vnclowpot:1710 "Get your own image badge on microbadger.com")
[![](https://images.microbadger.com/badges/version/dtagdevsec/vnclowpot:1804.svg)](https://microbadger.com/images/dtagdevsec/vnclowpot:1804 "Get your own version badge on microbadger.com") [![](https://images.microbadger.com/badges/image/dtagdevsec/vnclowpot:1804.svg)](https://microbadger.com/images/dtagdevsec/vnclowpot:1804 "Get your own image badge on microbadger.com")
# vnclowpot

View File

@ -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