diff --git a/Dockerfile b/Dockerfile index e4d582029e8..4caba4c6681 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM unit:php +FROM yuim/unit:1.22.0-php7.4 RUN apt-get update && apt-get -y install libicu-dev libzip-dev libpq-dev && \ docker-php-ext-install -j$(nproc) opcache intl zip pdo_pgsql && \ @@ -11,5 +11,4 @@ WORKDIR /www/app COPY --chown=unit:unit . . RUN composer clearcache && composer install && rm -f .env USER root -COPY .unit.conf.json /docker-entrypoint.d/ -EXPOSE 8080 \ No newline at end of file +COPY config.json /docker-entrypoint.d/ diff --git a/.unit.conf.json b/config.json similarity index 94% rename from .unit.conf.json rename to config.json index b6448c97bb6..0679e0b5817 100644 --- a/.unit.conf.json +++ b/config.json @@ -1,6 +1,6 @@ { "listeners": { - "*:8080": { + "*:80": { "pass": "routes" } }, @@ -27,7 +27,7 @@ ], "applications": { "app": { - "type": "php", + "type": "php 7.4", "targets": { "direct": { "root": "/www/app/"