Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: docker/setup-buildx-action@v1.6.0
-
name: Cache Docker layers
uses: actions/cache@v3.0.8
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# cradle

## March 2025
- 3.0 - adjust entrypoint
- Install extra tls CA cert if it exists

## March 2021

- 2.0 - PHP 7.3, Apache & API config change
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ RUN sed -ri -e "s!/var/www/!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/apache2.conf
COPY --from=composer --chown=www-data:www-data /installing /var/www/html/cradle

ADD ./docker/config.js /var/www/html/cradle/public_html/config.js

COPY docker/entrypoint.sh /entrypoint.sh
COPY docker/php.ini /usr/local/etc/php/conf.d/php.ini

ENTRYPOINT ["/bin/bash"]
CMD ["/entrypoint.sh"]
8 changes: 8 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

if [ -r '/usr/share/ca-certificates/extra/ca.crt' ]; then
echo 'extra/ca.crt' >> /etc/ca-certificates.conf
update-ca-certificates
fi

docker-php-entrypoint apache2-foreground
1 change: 1 addition & 0 deletions docker/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
date.timezone = "UTC"
Loading