mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
change dockerfile to able to copy app.php from configs
This commit is contained in:
parent
e4508f2be7
commit
4d2308eb8a
17
Dockerfile
17
Dockerfile
@ -1,17 +1,12 @@
|
||||
FROM nginx
|
||||
FROM phpdockerio/php74-fpm
|
||||
|
||||
# install php fpm
|
||||
RUN apt-get update \
|
||||
&& apt-get -y --no-install-recommends install curl unzip php7.3-curl php7.3-fpm php7.3-mbstring php7.3-intl php7.3-xml php7.3-pdo php7.3-mysql \
|
||||
&& apt-get -y --no-install-recommends install curl unzip php7.4-curl php7.4-fpm php7.4-mbstring php7.4-intl php7.4-xml php7.4-pdo php7.4-mysql \
|
||||
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
||||
|
||||
# install composer
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
|
||||
WORKDIR /var/www/cakephp
|
||||
|
||||
WORKDIR /usr/share/nginx/html
|
||||
|
||||
COPY . .
|
||||
COPY ./config/nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY ./config/nginx/fastcgi.conf /etc/nginx/
|
||||
COPY ./config/nginx/mime.types /etc/nginx/
|
||||
RUN composer update --no-scripts --no-autoloader
|
||||
COPY ./community_server/ .
|
||||
COPY ./configs/community_server/app.php ./config/
|
||||
RUN composer update
|
||||
|
||||
@ -37,8 +37,8 @@ server {
|
||||
fastcgi_index index.php;
|
||||
include fastcgi.conf;
|
||||
|
||||
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
|
||||
#fastcgi_pass 127.0.0.1:9000;
|
||||
#fastcgi_pass unix:/run/php/php7.3-fpm.sock;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user