33 lines
873 B
Docker
33 lines
873 B
Docker
FROM dunglas/frankenphp
|
|
|
|
RUN install-php-extensions \
|
|
pcntl \
|
|
pdo \
|
|
pdo_pgsql \
|
|
pdo_mysql \
|
|
pdo_sqlite
|
|
|
|
# Add other PHP extensions here...
|
|
|
|
# Install supervisor for queue workers and scheduler
|
|
RUN apt-get update && apt-get install -y \
|
|
supervisor \
|
|
cron \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& mkdir -p /var/log/supervisor
|
|
|
|
# Set up supervisor configuration
|
|
COPY ./supervisor/ /etc/supervisor/conf.d/
|
|
|
|
# Set up entrypoint script
|
|
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
COPY ./.env.docker /app/.env
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
# Copy hook script if it exists (for extending images)
|
|
# Note: Applications extending this image can add their own hook.sh to /app/
|
|
|
|
RUN mkdir -p /app/database
|
|
RUN touch /app/database/database.sqlite && chmod 777 /app/database/database.sqlite
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |