forked from thedevdojo/wave
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 705 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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