mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
finetuning nginx
This commit is contained in:
@ -15,10 +15,11 @@ RUN apk -U upgrade && \
|
||||
git clone https://github.com/cymmetria/ciscoasa_honeypot && \
|
||||
cd ciscoasa_honeypot && \
|
||||
pip3 install -r requirements.txt && \
|
||||
chown -R ciscoasa:ciscoasa /opt/ciscoasa_honeypot
|
||||
chown -R ciscoasa:ciscoasa /opt/ciscoasa_honeypot && \
|
||||
|
||||
# Clean up
|
||||
# apk del build-base git nodejs-npm python
|
||||
apk del build-base git libffi-dev openssl-dev python3-dev && \
|
||||
apk add libffi openssl python3
|
||||
|
||||
# Start elasticsearch-head
|
||||
WORKDIR /opt/ciscoasa_honeypot
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM nginx:alpine
|
||||
FROM alpine
|
||||
MAINTAINER MO
|
||||
|
||||
# Include dist
|
||||
@ -9,7 +9,8 @@ RUN apk -U upgrade && \
|
||||
apk add bash nginx nginx-mod-http-headers-more procps && \
|
||||
|
||||
# Setup configs
|
||||
rm /etc/nginx/conf.d/* /usr/share/nginx/html/* && \
|
||||
mkdir -p /run/nginx && \
|
||||
rm -rf /etc/nginx/conf.d/* /usr/share/nginx/html/* && \
|
||||
cp /root/dist/conf/nginx.conf /etc/nginx/ && \
|
||||
cp -R /root/dist/conf/ssl /etc/nginx/ && \
|
||||
cp /root/dist/conf/tpotweb.conf /etc/nginx/conf.d/ && \
|
||||
|
@ -9,8 +9,6 @@ services:
|
||||
container_name: nginx
|
||||
restart: always
|
||||
network_mode: "host"
|
||||
# cap_add:
|
||||
# - NET_BIND_SERVICE
|
||||
ports:
|
||||
- "64297:64297"
|
||||
image: "dtagdevsec/nginx:1710"
|
||||
|
Reference in New Issue
Block a user