move-php #4
|
|
@ -24,6 +24,7 @@ RUN apt update && apt install -y \
|
||||||
libonig-dev \
|
libonig-dev \
|
||||||
libxslt1-dev \
|
libxslt1-dev \
|
||||||
acl \
|
acl \
|
||||||
|
nginx \
|
||||||
&& echo 'alias sf="php bin/console"' >> ~/.bashrc
|
&& echo 'alias sf="php bin/console"' >> ~/.bashrc
|
||||||
|
|
||||||
RUN wget -q -O /etc/apt/trusted.gpg.d/lab50.gpg http://packages.lab50.net/lab50.gpg
|
RUN wget -q -O /etc/apt/trusted.gpg.d/lab50.gpg http://packages.lab50.net/lab50.gpg
|
||||||
|
|
@ -64,16 +65,16 @@ COPY ./backend /usr/src/signer
|
||||||
|
|
||||||
COPY ./docker/php/www.conf /etc/php/8.3/fpm/pool.d/www.conf
|
COPY ./docker/php/www.conf /etc/php/8.3/fpm/pool.d/www.conf
|
||||||
|
|
||||||
RUN curl curl https://frankenphp.dev/install.sh | sh
|
# RUN curl curl https://frankenphp.dev/install.sh | sh
|
||||||
RUN mv /usr/src/signer/frankenphp /usr/local/bin/
|
# RUN mv /usr/src/signer/frankenphp /usr/local/bin/
|
||||||
|
|
||||||
ENV COMPOSER_ALLOW_SUPERUSER=1
|
ENV COMPOSER_ALLOW_SUPERUSER=1
|
||||||
RUN composer install
|
RUN composer install
|
||||||
RUN service php8.3-fpm start
|
# RUN service php8.3-fpm start
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||||
CMD ["php-fpm8.3", "-F"]
|
CMD ["php-fpm8.3", "-F", "nginx", "-g 'daemon off'"]
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
@ -1,6 +1,21 @@
|
||||||
server {
|
server {
|
||||||
server_name _;
|
server_name _;
|
||||||
listen *:80;
|
listen *:80;
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
root /usr/src/signer/public;
|
||||||
|
|
||||||
root /application/public;
|
|
||||||
}
|
location ~* \.php$ {
|
||||||
|
try_files $uri $uri/ /index.php last;
|
||||||
|
fastcgi_split_path_info (.+?\.php)(/.*)$;
|
||||||
|
fastcgi_pass localhost:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~* .php/ {
|
||||||
|
rewrite (.*.php)/ $1 last;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue