mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
bump nginx to 1.16.1
This commit is contained in:
@ -1,13 +1,13 @@
|
|||||||
FROM alpine
|
FROM alpine
|
||||||
|
#
|
||||||
# Include dist
|
# Include dist
|
||||||
ADD dist/ /root/dist/
|
ADD dist/ /root/dist/
|
||||||
|
#
|
||||||
# Get and install dependencies & packages
|
# Get and install dependencies & packages
|
||||||
RUN apk -U --no-cache add \
|
RUN apk -U --no-cache add \
|
||||||
nginx \
|
nginx \
|
||||||
nginx-mod-http-headers-more && \
|
nginx-mod-http-headers-more && \
|
||||||
|
#
|
||||||
# Setup configs
|
# Setup configs
|
||||||
mkdir -p /run/nginx && \
|
mkdir -p /run/nginx && \
|
||||||
rm -rf /etc/nginx/conf.d/* /usr/share/nginx/html/* && \
|
rm -rf /etc/nginx/conf.d/* /usr/share/nginx/html/* && \
|
||||||
@ -15,10 +15,10 @@ RUN apk -U --no-cache add \
|
|||||||
cp -R /root/dist/conf/ssl /etc/nginx/ && \
|
cp -R /root/dist/conf/ssl /etc/nginx/ && \
|
||||||
cp /root/dist/conf/tpotweb.conf /etc/nginx/conf.d/ && \
|
cp /root/dist/conf/tpotweb.conf /etc/nginx/conf.d/ && \
|
||||||
cp -R /root/dist/html/ /var/lib/nginx/ && \
|
cp -R /root/dist/html/ /var/lib/nginx/ && \
|
||||||
|
#
|
||||||
# Clean up
|
# Clean up
|
||||||
rm -rf /root/* && \
|
rm -rf /root/* && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
#
|
||||||
# Start nginx
|
# Start nginx
|
||||||
CMD exec nginx -g 'daemon off;'
|
CMD exec nginx -g 'daemon off;'
|
||||||
|
Reference in New Issue
Block a user