41 lines
1.1 KiB
Docker
41 lines
1.1 KiB
Docker
#####
|
|
# This version of Torsearch runs the scheduler, downloader, and worker
|
|
# in a single container. Each process is managerd by supervisord
|
|
# and can be configured via environment variables and more
|
|
# than one of these containers cans till be run.
|
|
#####
|
|
ARG ALPINE_VERSION="3.22"
|
|
FROM alpine:${ALPINE_VERSION} AS build_stage
|
|
|
|
RUN apk add --no-cache \
|
|
curl \
|
|
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 \
|
|
php84-xml \
|
|
supervisor
|
|
|
|
RUN ln -s /usr/bin/php84 /usr/bin/php
|
|
|
|
RUN mkdir -p /etc/supervisor/conf.d
|
|
|
|
# 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
|
|
|