File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# ###############################
2- # Assets build
2+ # Assets build
33# ###############################
44FROM --platform=$BUILDPLATFORM node:24-alpine AS assets_builder
55LABEL maintainer="ITK Dev <itkdev@mkb.aarhus.dk>"
@@ -45,7 +45,7 @@ RUN rm -rf package* vite.config.js
4545
4646
4747# ###############################
48- # PHP-FPM (API) production image
48+ # PHP-FPM (API) production image
4949# ###############################
5050FROM --platform=$BUILDPLATFORM itkdev/php8.4-fpm:alpine
5151LABEL maintainer="ITK Dev <itkdev@mkb.aarhus.dk>"
@@ -65,6 +65,8 @@ ENV APP_ENV=prod \
6565
6666# Install the api application.
6767COPY --chown=deploy:deploy --from=api_app_builder /app .
68+
69+ # Symfony settings (warmup required to make vite assets work corretly)
6870RUN mkdir -p ./config/secrets
6971
7072CMD [ "docker-entrypoint.sh" ]
Original file line number Diff line number Diff line change 1- upstream api_backend {
2- server ${NGINX_FPM_SERVICE};
3- keepalive 16;
4- }
5-
61server {
72 listen ${NGINX_PORT};
83 listen [::]:${NGINX_PORT};
@@ -63,7 +58,7 @@ server {
6358
6459 # Screen client online check should just serve static files
6560 location /client/online-check {
66- index index.html index.htm ;
61+ index index.html;
6762 }
6863
6964 location = /robots.txt {
@@ -98,7 +93,7 @@ server {
9893
9994 # PHP-FPM handling
10095 location ~ ^/index\.php(/|$) {
101- fastcgi_pass api_backend ;
96+ fastcgi_pass ${NGINX_FPM_SERVICE}:${NGINX_FPM_PORT} ;
10297 fastcgi_split_path_info ^(.+\.php)(/.*)$;
10398 include fastcgi_params;
10499
@@ -126,7 +121,6 @@ server {
126121 return 404;
127122 }
128123
129- # Send log message to files symlinked to stdout/stderr.
130124 sendfile on;
131125 keepalive_timeout 65;
132126
You can’t perform that action at this time.
0 commit comments