image tweaking

This commit is contained in:
t3chn0m4g3
2022-03-08 23:36:03 +00:00
parent 22904d402a
commit 9d7c24892d
25 changed files with 64 additions and 64 deletions

View File

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