first commit

This commit is contained in:
benjibennn
2023-12-22 12:35:55 +08:00
commit 9f89a732d6
872 changed files with 156291 additions and 0 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM haakco/stage3-ubuntu-20.04-php7.4-lv
USER www-data
## Cleanout previous dev just in case
RUN rm -rf /var/www/site/*
ADD --chown=www-data:www-data . /var/www/site
WORKDIR /var/www/site
RUN composer install --no-ansi --no-suggest --no-scripts --prefer-dist --no-progress --no-interaction \
--optimize-autoloader
USER root
RUN find /usr/share/GeoIP -not -user www-data -execdir chown "www-data:" {} \+ && \
find /var/www/site -not -user www-data -execdir chown "www-data:" {} \+
#HEALTHCHECK \
# --interval=30s \
# --timeout=60s \
# --retries=10 \
# --start-period=60s \
# CMD if [[ "$(curl -f http://127.0.0.1/ | jq -e . >/dev/null 2>&1)" != "0" ]]; then exit 1; else exit 0; fi