Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit fcf65005 authored by Nicolas's avatar Nicolas
Browse files

feat: update nginx and phpfpm

parent 34a924d4
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
FROM nginx:latest FROM nginx:1.22.1
MAINTAINER Nicolas Béjean <nicolas@bejean.fr> MAINTAINER Nicolas Béjean <nicolas@bejean.fr>
# Créé l'utilisateur app # Créé l'utilisateur app
...@@ -10,6 +10,10 @@ RUN groupadd -g 1000 app \ ...@@ -10,6 +10,10 @@ RUN groupadd -g 1000 app \
# Créé le fichier nginx.pid # Créé le fichier nginx.pid
RUN touch /var/run/nginx.pid RUN touch /var/run/nginx.pid
# Copie les fichiers de configurations
COPY ./conf/nginx/nginx.conf /etc/nginx/
COPY ./conf/nginx/default.conf /etc/nginx/conf.d/
# Créé les répertoies et assigne les droits # Créé les répertoies et assigne les droits
RUN mkdir -p /var/www/html /var/log/nginx \ RUN mkdir -p /var/www/html /var/log/nginx \
&& chown -R app:app /etc/nginx /var/www /var/cache/nginx /var/run/nginx.pid /var/log/nginx \ && chown -R app:app /etc/nginx /var/www /var/cache/nginx /var/run/nginx.pid /var/log/nginx \
...@@ -23,7 +27,3 @@ WORKDIR /var/www/html ...@@ -23,7 +27,3 @@ WORKDIR /var/www/html
# Expose le port 8000 # Expose le port 8000
EXPOSE 8000 EXPOSE 8000
# Copie les fichiers de configurations
COPY ./conf/nginx/nginx.conf /etc/nginx/
COPY ./conf/nginx/default.conf /etc/nginx/conf.d/
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
FROM php:7.3-fpm-bullseye FROM php:8.1-fpm-bullseye
MAINTAINER Nicolas Béjean <nicolas@bejean.fr> MAINTAINER Nicolas Béjean <nicolas@bejean.fr>
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment