-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (43 loc) · 1.59 KB
/
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
36
37
38
39
40
41
42
43
FROM centos:8
ENV container docker
MAINTAINER "Reynier de la Rosa" <reynier.delarosa@outlook.es>
RUN dnf -y install epel-release \
&& dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm \
&& dnf module -y enable nginx:mainline \
&& dnf module -y install php:remi-8.0 \
&& dnf -y install dnf-plugins-core \
&& dnf config-manager --add-repo https://packages.microsoft.com/config/rhel/8/prod.repo
ENV ACCEPT_EULA=Y
ENV PATH=${PATH}:/opt/mssql/bin:/opt/mssql-tools/bin
RUN dnf --enablerepo=powertools -y install tinyxml2 \
&& dnf -y install msodbcsql17 \
mssql-tools \
unixODBC-devel \
gettext \
unzip \
git \
nginx \
supervisor \
php-gd \
php-intl \
php-json \
php-opcache \
php-pdo \
php-sqlsrv \
php-bcmath \
php-pecl-uuid \
php-pecl-zip \
php-pecl-memcached \
php-pecl-imagick \
&& dnf clean all \
&& rm -rf /var/cache/yum \
&& mkdir -p /run/php-fpm
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer
RUN ln -sf /dev/stderr /var/log/php-fpm/error.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log \
&& ln -sf /dev/stderr /var/log/php-fpm/www-error.log
EXPOSE 443 80
WORKDIR /usr/share/nginx/html/api
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]