docker-laravel-base/Dockerfile
2025-07-16 12:19:34 -04:00

22 lines
473 B
Docker

FROM dunglas/frankenphp
RUN install-php-extensions \
pcntl \
pdo \
pdo_pgsql \
pdo_mysql \
pdo_sqlite
# Add other PHP extensions here...
# Get the app in there
COPY . /app
# 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
RUN touch /app/database/database.sqlite && chmod 777 /app/database/database.sqlite
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]