2023-06-09 03:52:50 +02:00
|
|
|
FROM alpine
|
|
|
|
RUN sleep 10
|
|
|
|
RUN apk update
|
|
|
|
RUN apk add openssl
|
|
|
|
RUN apk add nginx
|
|
|
|
RUN apk add php7
|
|
|
|
RUN apk add php7-fpm
|
|
|
|
RUN apk add php7-mysqli
|
|
|
|
RUN apk add php7-gd
|
|
|
|
RUN apk add php7-mbstring
|
|
|
|
RUN apk add php7-curl
|
|
|
|
RUN apk add php7-json
|
|
|
|
RUN apk add php7-xml
|
|
|
|
RUN apk add php7-zip
|
|
|
|
RUN apk add telegraf
|
|
|
|
COPY srcs/start.sh /root/start.sh
|
|
|
|
COPY srcs/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
COPY srcs/telegraf.conf /etc/telegraf/telegraf.conf
|
|
|
|
COPY srcs/wordpress.conf /var/www/wordpress/wp-config.php
|
|
|
|
WORKDIR /root/
|
|
|
|
RUN wget https://wordpress.org/latest.tar.gz
|
|
|
|
RUN tar -xvf latest.tar.gz
|
|
|
|
RUN mv wordpress/* /var/www/wordpress/
|
|
|
|
RUN chown -R root:root /var/www
|
|
|
|
RUN openssl genrsa -out nginx.key
|
|
|
|
RUN openssl req -new -key nginx.key -out nginx.csr -subj "/C=NL/ST=Friesland/L=Heerenveen/O=localhost/OU=localhost/CN=localhost/emailAddress=djonker@student.codam.nl"
|
|
|
|
RUN openssl x509 -req -days 365 -in nginx.csr -signkey nginx.key -out nginx.crt
|
|
|
|
RUN mv nginx.crt /etc/ssl/certs/nginx.crt
|
|
|
|
RUN mv nginx.key /etc/ssl/private/nginx.key
|
|
|
|
RUN chmod 600 /etc/ssl/certs/nginx.crt /etc/ssl/private/nginx.key
|
|
|
|
CMD sh start.sh
|
|
|
|
EXPOSE 5050/tcp
|