first commit
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user