mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
prepare for nginx docker image
This commit is contained in:
23
docker/nginx/Dockerfile
Normal file
23
docker/nginx/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
FROM nginx:alpine
|
||||
MAINTAINER MO
|
||||
|
||||
# Include dist
|
||||
ADD dist/ /root/dist/
|
||||
|
||||
# Get and install dependencies & packages
|
||||
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/* && \
|
||||
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/ && \
|
||||
cp -R /root/dist/html/ /var/lib/nginx/ && \
|
||||
|
||||
# Clean up
|
||||
rm -rf /root/* && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
# Start nginx
|
||||
CMD nginx -g 'daemon off;'
|
Reference in New Issue
Block a user