mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
image tweaking
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
FROM alpine:3.15
|
||||
#
|
||||
# Include dist
|
||||
ADD dist/ /root/dist/
|
||||
#COPY dist/ /root/dist/
|
||||
# Install packages
|
||||
RUN apk -U add \
|
||||
RUN apk -U --no-cache add \
|
||||
build-base \
|
||||
git \
|
||||
libcap \
|
||||
@ -18,7 +18,7 @@ RUN apk -U add \
|
||||
cd wordpot2 && \
|
||||
git checkout e93a2e00d84d280b0acd58ba6889b4bee8a6e4d2 && \
|
||||
sed "s/MarkupSafe==1.0/MarkupSafe==1.1.1/g" -i requirements.txt && \
|
||||
cp /root/dist/views.py /opt/wordpot2/wordpot/views.py && \
|
||||
# cp /root/dist/views.py /opt/wordpot2/wordpot/views.py && \
|
||||
pip3 install -r requirements.txt && \
|
||||
setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \
|
||||
#
|
||||
@ -31,8 +31,7 @@ RUN apk -U add \
|
||||
apk del --purge build-base \
|
||||
git \
|
||||
python3-dev && \
|
||||
rm -rf /root/* && \
|
||||
rm -rf /var/cache/apk/*
|
||||
rm -rf /root/* /var/cache/apk/* /opt/wordpot2/.git
|
||||
#
|
||||
# Start wordpot
|
||||
STOPSIGNAL SIGINT
|
||||
|
Reference in New Issue
Block a user