diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9a19b27 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM alpine:latest +RUN apk update && apk upgrade +RUN apk add bash +RUN apk add autoconf automake make gcc g++ +RUN apk add nginx +RUN apk add php83 php83-fpm php83-opcache php83-tokenizer +RUN apk add php83-gd php83-zlib php83-curl php83-bz2 php83-bcmath php83-exif php83-fileinfo php83-iconv php83-imap php83-intl php83-ldap php83-mbstring php83-mysqli php83-odbc php83-pdo php83-pdo_mysql php83-pdo_odbc php83-pdo_pgsql php83-pdo_sqlite php83-pear php83-pecl-imagick php83-pecl-memcache php83-pecl-memcached php83-pecl-mongodb php83-pecl-redis php83-pecl-smbclient php83-pecl-ssh2 php83-pecl-xdebug php83-pecl-yaml php83-pgsql php83-phar php83-phpdbg php83-session php83-simplexml php83-snmp php83-soap php83-sockets php83-sodium php83-sqlite3 php83-sysvmsg php83-tidy php83-xml php83-xmlreader php83-xmlwriter php83-xsl php83-zip +RUN apk add redis +COPY nginx /etc/nginx +COPY php /etc/php83 +COPY redis/redis.conf /etc/redis.conf +RUN mkdir /var/run/php +EXPOSE 80 +EXPOSE 443 +EXPOSE 6379 +EXPOSE 9000 +STOPSIGNAL SIGTERM +CMD ["/bin/bash", "-c", "php-fpm83 && chmod 755 /usr/share/nginx/html/* && nginx -g 'daemon off;' && redis-server /etc/redis.conf"] \ No newline at end of file