tpotce/docker/deprecated/nginx/Dockerfile

25 lines
643 B
Text
Raw Normal View History

2020-02-26 14:22:48 +00:00
FROM alpine:latest
2019-08-28 14:09:16 +00:00
#
2018-02-16 14:17:34 +00:00
# Include dist
ADD dist/ /root/dist/
2019-08-28 14:09:16 +00:00
#
2018-02-16 14:17:34 +00:00
# Get and install dependencies & packages
2018-05-19 21:02:52 +00:00
RUN apk -U --no-cache add \
nginx \
nginx-mod-http-headers-more && \
2019-08-28 14:09:16 +00:00
#
2018-02-16 14:17:34 +00:00
# Setup configs
2018-02-26 17:55:56 +00:00
mkdir -p /run/nginx && \
rm -rf /etc/nginx/conf.d/* /usr/share/nginx/html/* && \
2018-02-16 14:17:34 +00:00
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/ && \
2019-08-28 14:09:16 +00:00
#
2018-02-16 14:17:34 +00:00
# Clean up
rm -rf /root/* && \
rm -rf /var/cache/apk/*
2019-08-28 14:09:16 +00:00
#
2018-02-16 14:17:34 +00:00
# Start nginx
2018-04-16 22:05:16 +00:00
CMD exec nginx -g 'daemon off;'