mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +00:00
dicompot tweaking
This commit is contained in:
parent
16a7cdb975
commit
4e6510b5c7
3 changed files with 4 additions and 4 deletions
|
@ -14,12 +14,11 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
|
|||
cd /opt/go/ && \
|
||||
git clone https://github.com/nsmfoo/dicompot.git && \
|
||||
cd dicompot && \
|
||||
sed -i 's#dicompot.log#/var/log/dicompot/dicompot.log#g' server/server.go && \
|
||||
go mod download && \
|
||||
go install -a -x github.com/nsmfoo/dicompot/server && \
|
||||
#
|
||||
# Setup dicompot
|
||||
mkdir -p /opt/dicompot && \
|
||||
mkdir -p /opt/dicompot/images && \
|
||||
cp /opt/go/bin/server /opt/dicompot && \
|
||||
#
|
||||
# Setup user, groups and configs
|
||||
|
@ -39,5 +38,4 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
|
|||
# Start dicompot
|
||||
WORKDIR /opt/dicompot
|
||||
USER dicompot:dicompot
|
||||
#CMD ["./server","-ip","0.0.0.0","-log","/var/log/dicompot/dicompot.log"]
|
||||
CMD ["./server","-ip","0.0.0.0"]
|
||||
CMD ["./server","-ip","0.0.0.0","-dir","images","-log","/var/log/dicompot/dicompot.log"]
|
||||
|
|
|
@ -18,3 +18,4 @@ services:
|
|||
read_only: true
|
||||
volumes:
|
||||
- /data/dicompot/log:/var/log/dicompot
|
||||
# - /path/to/dicom/images:/opt/dicompot/images
|
||||
|
|
|
@ -190,6 +190,7 @@ services:
|
|||
read_only: true
|
||||
volumes:
|
||||
- /data/dicompot/log:/var/log/dicompot
|
||||
# - /path/to/dicom/images:/opt/dicompot/images
|
||||
|
||||
# Dionaea service
|
||||
dionaea:
|
||||
|
|
Loading…
Reference in a new issue