-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfileTests
44 lines (40 loc) · 2.15 KB
/
DockerfileTests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN apt-get update \
&& apt-get -y install apt-utils \
&& apt-get -y upgrade \
&& apt-get -y install wget curl nano zip unzip git openssl sqlite3 build-essential software-properties-common cron supervisor gnupg tzdata
RUN wget -O PaloAlto_SSLInspection_ForwardTrust.crt https://tetrapi.pt/gp/PaloAlto_SSLInspection_ForwardTrust.crt
RUN cp PaloAlto_SSLInspection_ForwardTrust.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates
RUN echo "UTC" >> /etc/timezone \
&& dpkg-reconfigure -f noninteractive tzdata
RUN add-apt-repository ppa:ondrej/php \
&& curl -sL https://deb.nodesource.com/setup_18.x | bash - \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get -y install xmlsec1 libxmlsec1-openssl nginx php8.3-fpm php8.3-cli php8.3-curl php8.3-mbstring \
php8.3-mysql php8.3-gd php8.3-bcmath php8.3-readline \
php8.3-zip php8.3-imap php8.3-xml php8.3-intl php8.3-soap \
php8.3-memcache php8.3-memcached php8.3-yaml php8.3-dom php8.3-ldap \
php8.3-gnupg supervisor ca-certificates curl gnupg && mkdir -p /var/log/supervisor \
&& rm -rf /var/lib/apt/lists/*
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php --install-dir=/usr/bin --filename=composer
RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime
RUN composer self-update --2
#RUN rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/openroaming
COPY . /var/www/openroaming/
COPY ./.env.sample /var/www/openroaming/.env
RUN composer install
RUN php bin/console cache:warmup --env=dev
COPY service-config/supervisor/supervisord.conf /etc/supervisor/conf.d/
COPY service-config/nginx/nginx.conf /etc/nginx/nginx.conf
COPY service-config/nginx/mime.types /etc/nginx/mime.types
COPY service-config/nginx/fastcgi_params /etc/nginx/fastcgi_params
COPY service-config/nginx/sites /etc/nginx/conf.d
COPY --chown=www-data:www-data . /var/www/openroaming
RUN mkdir /run/php