Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
5ym committed Mar 26, 2024
1 parent 2fc4578 commit 6ed463f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand All @@ -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
COPY config.json /docker-entrypoint.d/
4 changes: 2 additions & 2 deletions .unit.conf.json → config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"listeners": {
"*:8080": {
"*:80": {
"pass": "routes"
}
},
Expand All @@ -27,7 +27,7 @@
],
"applications": {
"app": {
"type": "php",
"type": "php 7.4",
"targets": {
"direct": {
"root": "/www/app/"
Expand Down

0 comments on commit 6ed463f

Please sign in to comment.