Compare commits

..

No commits in common. "180b2da20d44c4f4dab2e36b082549b9d471846a" and "1d5e3c94a62c25b43f3054b7048e97bb1dc8c7e3" have entirely different histories.

3 changed files with 9 additions and 27 deletions

View File

@ -24,7 +24,6 @@ RUN apt update && apt install -y \
libonig-dev \
libxslt1-dev \
acl \
nginx \
&& echo 'alias sf="php bin/console"' >> ~/.bashrc
RUN wget -q -O /etc/apt/trusted.gpg.d/lab50.gpg http://packages.lab50.net/lab50.gpg
@ -64,19 +63,17 @@ WORKDIR /usr/src/signer/
COPY ./backend /usr/src/signer
COPY ./docker/php/www.conf /etc/php/8.3/fpm/pool.d/www.conf
COPY ./docker/nginx/default.conf /etc/nginx/sites-enabled/default
COPY ./docker/nginx/nginx.conf /etc/nginx/nginx.conf
RUN mkdir -p /run/php
# RUN curl curl https://frankenphp.dev/install.sh | sh
# RUN mv /usr/src/signer/frankenphp /usr/local/bin/
RUN curl curl https://frankenphp.dev/install.sh | sh
RUN mv /usr/src/signer/frankenphp /usr/local/bin/
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN composer install
# RUN service php8.3-fpm start
RUN service php8.3-fpm start
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
# CMD ["php-fpm8.3", "-F", "nginx", "-g 'daemon off'"]
CMD ["php-fpm8.3", "-F"]
EXPOSE 9000

View File

@ -1,21 +1,6 @@
server {
server_name _;
listen *:80;
index index.php index.html index.htm;
root /usr/src/signer/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;
}
root /application/public;
}

View File

@ -1,10 +1,9 @@
user www-data;
worker_processes 4;
daemon off;
pid /run/nginx.pid;
events {
worker_connections 2048;
worker_connections 2048;
multi_accept on;
use epoll;
}
@ -35,3 +34,4 @@ http {
fastcgi_buffer_size 32k;
}
daemon off;