This repository was archived by the owner on Mar 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 7272 --volume=./maps:/app/storage/app/private \
7373 --volume=./caddy_config:/config \
7474 --volume=./data:/data \
75- ghcr.io/$IMAGE_NAME:latest
76- docker exec -it mapdb2 php artisan optimize
75+ ghcr.io/$IMAGE_NAME:latest
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ RUN adduser --uid $UID -D ${USER} && \
2323 chown -R ${USER}:${USER} /data/caddy /config/caddy /app && \
2424 chmod 775 /app
2525
26+ COPY --chown=${USER}:${USER} docker/frankenphp/start.sh /usr/local/bin/start.sh
27+ RUN chmod +x /usr/local/bin/start.sh
28+
2629WORKDIR /app
2730USER ${USER}
2831
@@ -47,5 +50,5 @@ FROM phpbuilder AS app
4750RUN composer dump-autoload -o
4851
4952EXPOSE 8000
50- ENTRYPOINT ["php" , "/app/artisan" , "octane:frankenphp " ]
53+ ENTRYPOINT ["/usr/local/bin/start.sh " ]
5154HEALTHCHECK --start-period=5s --interval=10s --timeout=5s --retries=8 CMD php /app/artisan octane:status || exit 1
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Exit immediately if a command exits with a non-zero status
4+ set -e
5+
6+ # Run Laravel optimizations
7+ php /app/artisan optimize
8+
9+ # Start the application
10+ exec php /app/artisan octane:frankenphp
You can’t perform that action at this time.
0 commit comments