This commit is contained in:
t3chn0m4g3 2023-01-10 17:56:18 +00:00
parent ede61b81d9
commit 516bec1deb

View file

@ -1,7 +1,7 @@
FROM alpine:3.17 FROM alpine:3.17
# #
# Include dist # Include dist
COPY dist/ /root/dist/ #COPY dist/ /root/dist/
# #
# Install packages # Install packages
RUN apk -U --no-cache add \ RUN apk -U --no-cache add \
@ -15,12 +15,11 @@ RUN apk -U --no-cache add \
# Install from GitHub and setup # Install from GitHub and setup
mkdir -p /opt && \ mkdir -p /opt && \
cd /opt/ && \ cd /opt/ && \
git clone https://github.com/t3chn0m4g3/geoip-attack-map -b 1.0.1 && \ git clone https://github.com/t3chn0m4g3/geoip-attack-map -b 1.0.2 && \
cd geoip-attack-map && \ cd geoip-attack-map && \
# git checkout 4dae740178455f371b667ee095f824cb271f07e8 && \ # git checkout eaf8d123d72a62e4c12093e4e8487e10e6ef60f3 && \
# git branch -a && \ # git branch -a && \
# git checkout multi && \ # git checkout multi && \
# cp /root/dist/index.html . && \
pip3 install --upgrade pip && \ pip3 install --upgrade pip && \
pip3 install -r requirements.txt && \ pip3 install -r requirements.txt && \
setcap cap_net_bind_service=+ep /usr/bin/python3.10 && \ setcap cap_net_bind_service=+ep /usr/bin/python3.10 && \
@ -36,7 +35,7 @@ RUN apk -U --no-cache add \
python3-dev && \ python3-dev && \
rm -rf /root/* /var/cache/apk/* /opt/geoip-attack-map/.git rm -rf /root/* /var/cache/apk/* /opt/geoip-attack-map/.git
# #
# Start wordpot # Start GeoIPAttackMap
STOPSIGNAL SIGINT STOPSIGNAL SIGINT
USER map:map USER map:map
WORKDIR /opt/geoip-attack-map WORKDIR /opt/geoip-attack-map