finetuning nginx

This commit is contained in:
Marco Ochse
2018-02-26 17:55:56 +00:00
parent 2f063b28c0
commit 7a507156bd
3 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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/ && \

View File

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