-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (22 loc) · 1.12 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM dimaip/docker-neos-alpine:latest
ENV PHP_TIMEZONE=Europe/Moscow
ENV REPOSITORY_URL=https://github.com/psmb/KateheoDistr
ENV AWS_ENDPOINT=https://hb.bizmrg.com
ENV AWS_BACKUP_ARN=s3://psmb-neos-resources/db/kateheo/
ENV DONT_PUBLISH_PERSISTENT=1
WORKDIR /data/www-provisioned
RUN chown -R 80:80 /composer/ && \
chown -R 80:80 /data/www-provisioned && \
/bin/bash -c "source /init-php-conf.sh"
USER 80
COPY --chown=80:80 composer.json /data/www-provisioned/composer.json
COPY --chown=80:80 composer.lock /data/www-provisioned/composer.lock
COPY --chown=80:80 DistributionPackages/Sfi.Kateheo/composer.json /data/www-provisioned/DistributionPackages/Sfi.Kateheo/composer.json
RUN composer install && \
rm -rf /composer/cache && \
mkdir -p /data/www-provisioned/Configuration && \
cp /Settings.yaml /data/www-provisioned/Configuration/
COPY --chown=80:80 ./ /data/www-provisioned/
RUN composer run-script post-update-cmd && git remote set-url origin $REPOSITORY_URL
USER root
# HEALTHCHECK --interval=30s --timeout=15s --start-period=30s --retries=3 CMD curl -f http://localhost/ | grep "This website is powered by Neos"