Compare commits

...

2 Commits

3 changed files with 27 additions and 0 deletions

7
bash/build_base.sh Executable file
View File

@@ -0,0 +1,7 @@
# torsearch-app is built from this base, and torsearch-worker & torsearch-scheduler are built from torsearch-app
# This image is used to speed up build times
export FRANKENPHP_TAG=php8.4
docker buildx build --platform=linux/amd64 -f docker/Dockerfile.base -t code.caldwell.digital/home/torsearch-base:${FRANKENPHP_TAG} -t code.caldwell.digital/home/torsearch-base:latest --build-arg "FRANKENPHP_TAG=${FRANKENPHP_TAG}" .
docker push code.caldwell.digital/home/torsearch-base:${FRANKENPHP_TAG}
docker push code.caldwell.digital/home/torsearch-base:latest

16
docker/Dockerfile.base Normal file
View File

@@ -0,0 +1,16 @@
ARG FRANKENPHP_TAG
FROM dunglas/frankenphp:${FRANKENPHP_TAG}
ENV SERVER_NAME=":80"
ENV CADDY_GLOBAL_OPTIONS="auto_https off"
ENV APP_RUNTIME="Runtime\\FrankenPhpSymfony\\Runtime"
RUN install-php-extensions \
pdo_mysql \
gd \
intl \
zip \
opcache && \
apt install -y wget && \
apt clean && apt autoremove

View File

@@ -2,6 +2,10 @@ ARG APP_VERSION
FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION}
RUN apt install -y wget && \
apt autoremove && \
apt clean
ENTRYPOINT [ "php", "/app/bin/console", "messenger:consume", "async" ]
HEALTHCHECK --interval=3s --timeout=3s --retries=10 CMD return 0