FROM alpine:latest | |
RUN apk update && apk upgrade && apk add php php-sqlite3 php-curl php-mysqli php-mbstring wget unzip | |
RUN wget -O /typecho.zip https://github.com/typecho/typecho/releases/download/v1.2.1/typecho.zip | |
RUN mkdir -p /var/www/html && unzip /typecho.zip -d /var/www/html | |
RUN chmod -R u+rwx,g+rwx,o+rwx /var/www/html/usr | |
#COPY config.inc.php /var/www/html/config.inc.php | |
WORKDIR /var/www/html | |
EXPOSE 7860 | |
CMD ["php", "-S", "0.0.0.0:7860", "-t", "/var/www/html"] | |