-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (19 loc) · 827 Bytes
/
Dockerfile
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
FROM ubuntu:20.04
ENV CI_HOME=/app
RUN mkdir -p $CI_HOME
WORKDIR $CI_HOME
COPY . $CI_HOME
RUN apt-get update
RUN apt-get install -y unzip php7.4 php7.4-bcmath php7.4-cli php7.4-common php7.4-curl php7.4-fpm php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-pgsql php7.4-readline php7.4-xml php7.4-zip
RUN apt-get install -y nginx-full curl net-tools supervisor
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
RUN composer install
COPY nginx.conf /etc/nginx/sites-available/default
COPY supervisord.conf /etc/supervisord.conf
RUN mkdir -p /var/run/php
RUN mkdir -p /var/log/php-fpm
RUN chmod 777 web/assets
RUN service nginx stop
EXPOSE 8080
ENTRYPOINT ["./docker-entrypoint.sh"]