chore: creates base worker image

This commit is contained in:
2025-09-15 13:15:10 -05:00
parent 52f460ff62
commit 981699bc13
4 changed files with 24 additions and 11 deletions

View File

@@ -11,6 +11,4 @@ RUN install-php-extensions \
gd \ gd \
intl \ intl \
zip \ zip \
opcache && \ opcache
apt install -y wget && \
apt clean && apt autoremove

View File

@@ -0,0 +1,19 @@
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"
ARG APP_VERSION="0.dev"
ENV APP_VERSION="${APP_VERSION}"
RUN install-php-extensions \
pdo_mysql \
gd \
intl \
zip \
opcache
RUN apk add --no-cache wget

View File

@@ -1,6 +1,6 @@
ARG APP_VERSION FROM code.caldwell.digital/home/torsearch-base-worker:php8.4-alpine
FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION} COPY . /app
ENTRYPOINT [ "php", "/app/bin/console", "messenger:consume", "scheduler_monitor" ] ENTRYPOINT [ "php", "/app/bin/console", "messenger:consume", "scheduler_monitor" ]

View File

@@ -1,10 +1,6 @@
ARG APP_VERSION FROM code.caldwell.digital/home/torsearch-base-worker:php8.4-alpine
FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION} COPY . /app
RUN apt install -y wget && \
apt autoremove && \
apt clean
ENTRYPOINT [ "php", "/app/bin/console", "messenger:consume", "async" ] ENTRYPOINT [ "php", "/app/bin/console", "messenger:consume", "async" ]