feat: allows configuring the worker service and processes via command options and env vars
This commit is contained in:
@@ -9,33 +9,18 @@ ARG APP_VERSION="latest"
|
||||
FROM code.caldwell.digital/home/torsearch-app:${APP_VERSION} AS base_image
|
||||
|
||||
|
||||
FROM alpine:3.22 AS build_stage
|
||||
FROM code.caldwell.digital/home/torsearch-base-worker-supervisord:latest
|
||||
|
||||
COPY --from=base_image --chown=1000:1000 /app /app
|
||||
ENV APP_VERSION=${APP_VERSION}
|
||||
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
nginx \
|
||||
php84 \
|
||||
php84-ctype \
|
||||
php84-curl \
|
||||
php84-dom \
|
||||
php84-fileinfo \
|
||||
php84-fpm \
|
||||
php84-gd \
|
||||
php84-mbstring \
|
||||
php84-mysqli \
|
||||
php84-opcache \
|
||||
php84-openssl \
|
||||
php84-pdo_mysql \
|
||||
php84-tokenizer \
|
||||
supervisor
|
||||
|
||||
RUN ln -s /usr/bin/php84 /usr/bin/php
|
||||
|
||||
COPY docker/worker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
COPY docker/ app/docker
|
||||
COPY --from=base_image --chown=1000:1000 /app /app
|
||||
COPY docker/ /app/docker
|
||||
|
||||
# We start supervisord and supervisord starts
|
||||
# respective service in the configuration file.
|
||||
ENTRYPOINT ["/app/bin/console", "init:worker"]
|
||||
|
||||
# Message transports can be enabled by passing them as command options.
|
||||
# Inlcluding a number with the option will start that amount of processes
|
||||
# for the transport. Not supplying a number will default to 1.
|
||||
# --download --monitor OR --download 2 --monitor
|
||||
|
||||
Reference in New Issue
Block a user