Skip to content
Snippets Groups Projects
Commit 7b3b8315 authored by Cyril L'Orphelin's avatar Cyril L'Orphelin
Browse files

MAJ dockerfile

parent 1c7cd3f9
No related branches found
No related tags found
No related merge requests found
FROM php:7.4-fpm
FROM gitlab-registry.in2p3.fr/cc-in2p3-devops/openshift-origin/openshift-images/nginx:stable
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
......@@ -8,11 +10,11 @@ RUN apt-get update && apt-get install -y \
unzip \
nodejs \
npm \
nginx \
php7.4 \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd
RUN apt-get install php-pear php7.4-curl php7.4-dev php7.4-gd php7.4-mbstring php7.4-zip php7.4-mysql php7.4-xml
RUN echo "date.timezone=Europe/Paris" > /usr/local/etc/php/conf.d/timezone.ini
RUN echo "opcache.enable_cli=1" > /usr/local/etc/php/conf.d/opcache.ini
......@@ -34,7 +36,7 @@ RUN cp symfony.conf /etc/nginx/conf.d/symfony.conf
RUN mv .env.template .env
RUN ls -ahl
RUN curl -sS https://getcomposer.org/installer | php
RUN php composer.phar install
......@@ -51,21 +53,6 @@ RUN $HOME/.yarn/bin/yarn encore dev
# support running as arbitrary user which belongs to the root group
RUN chmod g+rwx /var/run /var/log/nginx
# users are not allowed to listen on priviliged ports
#RUN sed -i.bak 's/listen\(.*\)80;/listen 8081;/' /etc/nginx/conf.d/default.conf
EXPOSE 8081
# comment user directive as master process is run as user in OpenShift anyhow
#RUN sed -i.bak 's/^user/#user/' /etc/nginx/nginx.conf
RUN adduser nginx
RUN addgroup nginx root
USER nginx
......
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