All checks were successful
Build & Push Docker Image to Registry / build (release) Successful in 5m1s
32 lines
835 B
Docker
32 lines
835 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/*
|
|
|
|
# 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"] |