Files
ols-docker-env/config/litespeed/1.6.5.lh/Dockerfile
T
2020-01-24 15:55:16 +08:00

36 lines
1.3 KiB
Docker

#FROM debian:jessie-slim
FROM ubuntu:18.04
RUN apt-get update && apt-get install wget curl tzdata -y
RUN wget https://openlitespeed.org/preuse/openlitespeed-1.6.5.tgz && \
tar xzvf openlitespeed-1.6.5.tgz && cd openlitespeed && ./install.sh && rm -rf /openlitespeed
RUN apt-get install mysql-client lsphp73 lsphp73-common lsphp73-mysql lsphp73-opcache \
lsphp73-curl lsphp73-json lsphp73-imagick lsphp73-redis lsphp73-memcached -y
RUN wget -O /usr/local/lsws/admin/misc/lsup.sh \
https://raw.githubusercontent.com/litespeedtech/openlitespeed/master/dist/admin/misc/lsup.sh && \
chmod +x /usr/local/lsws/admin/misc/lsup.sh
EXPOSE 7080
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
chmod +x wp-cli.phar && mv wp-cli.phar /usr/bin/wp && \
ln -s /usr/local/lsws/lsphp73/bin/php7.3 /usr/bin/php
RUN apt-get install -y software-properties-common && \
add-apt-repository universe && \
add-apt-repository ppa:certbot/certbot && \
apt-get update && \
apt-get install -y certbot
RUN rm -rf /usr/local/lsws/conf
ADD conf /usr/local/lsws/conf
RUN chown 999:999 /usr/local/lsws/conf -R
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
WORKDIR /var/www/vhosts/
CMD ["/usr/local/lsws/bin/lswsctrl","start"]